mmf
Class MMF_TrapModeSmoothSumAbove
Object
common:Generic
common:TrapMode
common:TrapModeWithThreshold
mmf:MMF_TrapModeSmoothWithThreshold
mmf:MMF_TrapModeSmoothSumAbove
- Direct Known Subclasses:
- MMF_TrapModeSmoothAverageAbove
class
- MMF_TrapModeSmoothWithThreshold:MMF_TrapModeSmoothSumAbove
Sums the values above than the user value and within the threshold of it.
Ultra Fractal Source
Toggle UF Source Code Display
class MMF_TrapModeSmoothSumAbove(MMF_TrapModeSmoothWithThreshold) {
; Sums the values above than the user value and within the threshold of it.<br>
public:
import "common.ulb"
func MMF_TrapModeSmoothSumAbove(Generic pparent)
MMF_TrapModeSmoothWithThreshold.MMF_TrapModeSmoothWithThreshold(pparent)
endfunc
func Init(complex pz)
MMF_TrapModeSmoothWithThreshold.Init(pz)
m_Solid = true
endfunc
func Iterate(complex pz, complex pzt, float pdistance, float ptexture)
MMF_TrapModeSmoothWithThreshold.Iterate(pz, pzt, pdistance, ptexture)
pdistance = pdistance - @p_testdist
if pdistance>=0 && pdistance < m_Threshold
m_Distances[0] = m_Distances[0] + pdistance
m_Textures[0] = m_Textures[0] + ptexture
m_UntransformedPoints[0] = m_UntransformedPoints[0] + pz
m_TransformedPoints[0] = m_TransformedPoints[0] + pzt
m_IterationPoints[0] = m_IterationPoints[0] + m_Iterations
m_Solid = false
m_wastrapped = true
endif
endfunc
default:
title = "Smooth Sum Above"
rating = recommended
float param p_testdist
caption = "Trap Test Distance"
default = 0.5
hint = "Gets the sum of the distances from the test distance \
where the original distance was above the test distance \
and provided the distance from this distance is within \
the threshold."
endparam
}
Method Summary |
void |
Init(complex pz)
call this at the beginning of each sequence
|
void |
Iterate(complex pz,
complex pzt,
float pdistance,
float ptexture)
call this for each point |
Methods inherited from class Object |
|
MMF_TrapModeSmoothSumAbove
public MMF_TrapModeSmoothSumAbove(Generic pparent)
MMF_TrapModeSmoothSumAbove
public MMF_TrapModeSmoothSumAbove()
Init
public void Init(complex pz)
- Description copied from class:
MMF_TrapModeSmoothWithThreshold
- call this at the beginning of each sequence
- Overrides:
Init
in class MMF_TrapModeSmoothWithThreshold
- Parameters:
pz
- the initial z value
Iterate
public void Iterate(complex pz,
complex pzt,
float pdistance,
float ptexture)
- Description copied from class:
MMF_TrapModeSmoothWithThreshold
- call this for each point
Note that derived functions should always copy all used
parameters to the "old" versions when they are changed as here.
m_wastrapped should be set to true in the derived
function when the main (current) values get changed
- Overrides:
Iterate
in class MMF_TrapModeSmoothWithThreshold
- Parameters:
pz
- the z valuepzt
- the transformed z valuepdistance
- the trap distanceptexture
- tyhe texture value