dmj5
Class DMJ_TrapModeTwoClosest

Object
  extended by common:Generic
      extended by common:TrapMode
          extended by common:TrapModeWithThreshold
              extended by dmj5:DMJ_TrapModeSecondClosest
                  extended by dmj5:DMJ_TrapModeTwoClosest

class 
DMJ_TrapModeSecondClosest:DMJ_TrapModeTwoClosest



Ultra Fractal Source

Toggle UF Source Code Display

 class DMJ_TrapModeTwoClosest(DMJ_TrapModeSecondClosest) {
 public:
   import "common.ulb"
 
   func DMJ_TrapModeTwoClosest(Generic pparent)
     DMJ_TrapModeSecondClosest.DMJ_TrapModeSecondClosest(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 Closest"
 
   int param v_dmj_trapmodetwoclosest
     caption = "Version (DMJ_TrapModeTwoClosest)"
     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_trapmodetwoclosest < 100
   endparam
 }
 


Constructor Summary
DMJ_TrapModeTwoClosest()
           
DMJ_TrapModeTwoClosest(Generic pparent)
           
 
Method Summary
 void Result()
          call this to compute final results
 
Methods inherited from class dmj5:DMJ_TrapModeSecondClosest
Init, Iterate
 
Methods inherited from class common:TrapModeWithThreshold
GetThreshold, SetThreshold, UsesThreshold
 
Methods inherited from class common:TrapMode
GetDistance, GetIteration, GetTexture, GetTransformedPoint, GetUntransformedPoint, IsSolid, IterateSilent
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

DMJ_TrapModeTwoClosest

public DMJ_TrapModeTwoClosest(Generic pparent)

DMJ_TrapModeTwoClosest

public DMJ_TrapModeTwoClosest()
Method Detail

Result

public void Result()
Description copied from class: TrapMode
call this to compute final results

Overrides:
Result in class DMJ_TrapModeSecondClosest