IDensityFunctionVisitor interface
Transforms a density function tree through IDensityFunction.MapAll.
public interface IDensityFunctionVisitor
In Obsidian.API.
Methods
Apply(IDensityFunction)
IDensityFunction Apply(IDensityFunction function);Called for every function in the tree after its children have been mapped. Return the function unchanged to keep it.
Map(IDensityFunction)
IDensityFunction Map(IDensityFunction function);Maps a child function. Override to memoize so subtrees shared in the input stay shared in the output.
VisitNoise(INoise)
INoise VisitNoise(INoise noise);Called for every noise referenced by a function in the tree.