Package toxi.geom.mesh.subdiv
Class DisplacementSubdivision
java.lang.Object
toxi.geom.mesh.subdiv.SubdivisionStrategy
toxi.geom.mesh.subdiv.DisplacementSubdivision
- Direct Known Subclasses:
MidpointDisplacementSubdivision
,NormalDisplacementSubdivision
Abstract parent class for all displacement subdivision strategies. It adds
common support for the displacement amplification value, which subclasses can
utilize.
-
Field Summary
Fields inherited from class toxi.geom.mesh.subdiv.SubdivisionStrategy
DEFAULT_ORDERING
-
Constructor Summary
-
Method Summary
Methods inherited from class toxi.geom.mesh.subdiv.SubdivisionStrategy
computeSplitPoints, getEdgeOrdering, setEdgeOrdering
-
Constructor Details
-
DisplacementSubdivision
public DisplacementSubdivision(float amp)
-
-
Method Details
-
getAmp
public float getAmp()- Returns:
- the amp
-
invertAmp
-
scaleAmp
-
setAmp
- Parameters:
amp
- the amp to set- Returns:
- itself
-