mmf
Class MMF_TrapModeSmoothTwoClosest
Object
common:Generic
common:TrapMode
common:TrapModeWithThreshold
mmf:MMF_TrapModeSmoothWithThreshold
mmf:MMF_TrapModeSmoothSecondClosest
mmf:MMF_TrapModeSmoothTwoClosest
class
- MMF_TrapModeSmoothSecondClosest:MMF_TrapModeSmoothTwoClosest
Returns the averages of the closest and second closest trapped
iterations.
Ultra Fractal Source
Toggle UF Source Code Display
class MMF_TrapModeSmoothTwoClosest(MMF_TrapModeSmoothSecondClosest) {
; Returns the averages of the closest and second closest trapped
; iterations.
public:
import "common.ulb"
func MMF_TrapModeSmoothTwoClosest(Generic pparent)
MMF_TrapModeSmoothSecondClosest.MMF_TrapModeSmoothSecondClosest(pparent)
endfunc
func Result()
m_Distances[0] = 0.5*(m_Distances[0] + m_Distances[1])
m_Textures[0] = 0.5*(m_Textures[0] + m_Textures[1])
m_UntransformedPoints[0] = 0.5*(m_UntransformedPoints[0] \
+ m_UntransformedPoints[1])
m_TransformedPoints[0] = 0.5*(m_TransformedPoints[0] \
+ m_TransformedPoints[1])
m_IterationPoints[0] = round(0.5*(m_IterationPoints[0] \
+ m_IterationPoints[1]))
endfunc
func OldResult()
if m_OldIterationPoints[1]>0
m_Distances[0] = 0.5*(m_OldDistances[0] + m_OldDistances[1])
m_Textures[0] = 0.5*(m_OldTextures[0] + m_OldTextures[1])
m_UntransformedPoints[0] = 0.5*(m_OldUntransformedPoints[0] \
+ m_OldUntransformedPoints[1])
m_TransformedPoints[0] = 0.5*(m_OldTransformedPoints[0] \
+ m_OldTransformedPoints[1])
m_IterationPoints[0] = round(0.5*(m_OldIterationPoints[0] \
+ m_OldIterationPoints[1]))
endif
endfunc
default:
title = "Smooth Two Closest"
}
Method Summary |
void |
OldResult()
call this to compute penultimate results |
void |
Result()
call this to compute final results |
Methods inherited from class Object |
|
MMF_TrapModeSmoothTwoClosest
public MMF_TrapModeSmoothTwoClosest(Generic pparent)
MMF_TrapModeSmoothTwoClosest
public MMF_TrapModeSmoothTwoClosest()
Result
public void Result()
- Description copied from class:
TrapMode
- call this to compute final results
- Overrides:
Result
in class MMF_TrapModeSmoothSecondClosest
OldResult
public void OldResult()
- Description copied from class:
MMF_TrapModeSmoothWithThreshold
- call this to compute penultimate results
This should only be called after previously calling Result()
and getting the actual result value using the Trap Color Mode
since the original result values are destroyed by this call.
- Overrides:
OldResult
in class MMF_TrapModeSmoothSecondClosest