mmf
Class MMF_TrapModeSmoothTwoFarthest
Object
common:Generic
common:TrapMode
common:TrapModeWithThreshold
mmf:MMF_TrapModeSmoothWithThreshold
mmf:MMF_TrapModeSmoothSecondFarthest
mmf:MMF_TrapModeSmoothTwoFarthest
class
- MMF_TrapModeSmoothSecondFarthest:MMF_TrapModeSmoothTwoFarthest
Returns the averages of the values from the trapped iteration with the
farthest distance within the threshold and the second farthest.
Ultra Fractal Source
Toggle UF Source Code Display
class MMF_TrapModeSmoothTwoFarthest(MMF_TrapModeSmoothSecondFarthest) {
; Returns the averages of the values from the trapped iteration with the
; farthest distance within the threshold and the second farthest.<br>
public:
import "common.ulb"
func MMF_TrapModeSmoothTwoFarthest(Generic pparent)
MMF_TrapModeSmoothSecondFarthest.MMF_TrapModeSmoothSecondFarthest(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 Farthest"
}
Method Summary |
void |
OldResult()
call this to compute penultimate results |
void |
Result()
call this to compute final results |
Methods inherited from class Object |
|
MMF_TrapModeSmoothTwoFarthest
public MMF_TrapModeSmoothTwoFarthest(Generic pparent)
MMF_TrapModeSmoothTwoFarthest
public MMF_TrapModeSmoothTwoFarthest()
Result
public void Result()
- Description copied from class:
TrapMode
- call this to compute final results
- Overrides:
Result
in class MMF_TrapModeSmoothSecondFarthest
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_TrapModeSmoothSecondFarthest