Package toxi.geom.mesh.subdiv
Class TriSubdivision
java.lang.Object
toxi.geom.mesh.subdiv.SubdivisionStrategy
toxi.geom.mesh.subdiv.TriSubdivision
This subdivision strategy splits an edge in four equal parts using three
split points at 25%, 50% and 75% of the edge.
-
Field Summary
Fields inherited from class toxi.geom.mesh.subdiv.SubdivisionStrategy
DEFAULT_ORDERING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeSplitPoints
(WingedEdge edge) Computes a number of points on (or near) the given edge which are used for splitting the edge in smaller segments.Methods inherited from class toxi.geom.mesh.subdiv.SubdivisionStrategy
getEdgeOrdering, setEdgeOrdering
-
Constructor Details
-
TriSubdivision
public TriSubdivision()
-
-
Method Details
-
computeSplitPoints
Description copied from class:SubdivisionStrategy
Computes a number of points on (or near) the given edge which are used for splitting the edge in smaller segments.- Specified by:
computeSplitPoints
in classSubdivisionStrategy
- Parameters:
edge
- edge to split- Returns:
- list of split points
-