class DMJ_TrapModeTwoFarthest(DMJ_TrapModeSecondFarthest) {
public:
import "common.ulb"
func DMJ_TrapModeTwoFarthest(Generic pparent)
DMJ_TrapModeSecondFarthest.DMJ_TrapModeSecondFarthest(pparent)
endfunc
func Result()
m_Distances[0] = (m_Distances[0] + m_Distances[1]) / 2
m_Textures[0] = (m_Textures[0] + m_Textures[1]) / 2
m_UntransformedPoints[0] = (m_UntransformedPoints[0] + m_UntransformedPoints[1]) / 2
m_TransformedPoints[0] = (m_TransformedPoints[0] + m_TransformedPoints[1]) / 2
m_IterationPoints[0] = round((m_IterationPoints[0] + m_IterationPoints[1]) / 2)
endfunc
default:
title = "Two Farthest"
int param v_dmj_trapmodetwofarthest
caption = "Version (DMJ_TrapModeTwoFarthest)"
default = 100
hint = "This version parameter is used to detect when a change has been made to the formula that is incompatible with the previous version. When that happens, this field will reflect the old version number to alert you to the fact that an alternate rendering is being used."
visible = @v_dmj_trapmodetwofarthest < 100
endparam
}