toxi.geom.mesh.subdiv
Class DisplacementSubdivision

java.lang.Object
  extended by toxi.geom.mesh.subdiv.SubdivisionStrategy
      extended by toxi.geom.mesh.subdiv.DisplacementSubdivision
Direct Known Subclasses:
MidpointDisplacementSubdivision, NormalDisplacementSubdivision

public abstract class DisplacementSubdivision
extends SubdivisionStrategy

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
DisplacementSubdivision(float amp)
           
 
Method Summary
 float getAmp()
           
 DisplacementSubdivision invertAmp()
           
 DisplacementSubdivision scaleAmp(float scale)
           
 DisplacementSubdivision setAmp(float amp)
           
 
Methods inherited from class toxi.geom.mesh.subdiv.SubdivisionStrategy
computeSplitPoints, getEdgeOrdering, setEdgeOrdering
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplacementSubdivision

public DisplacementSubdivision(float amp)
Method Detail

getAmp

public float getAmp()
Returns:
the amp

invertAmp

public DisplacementSubdivision invertAmp()

scaleAmp

public DisplacementSubdivision scaleAmp(float scale)

setAmp

public DisplacementSubdivision setAmp(float amp)
Parameters:
amp - the amp to set
Returns:
itself