Package toxi.geom.mesh.subdiv
Class SubdivisionStrategy
java.lang.Object
toxi.geom.mesh.subdiv.SubdivisionStrategy
- Direct Known Subclasses:
DisplacementSubdivision,DualDisplacementSubdivision,DualSubdivision,MidpointSubdivision,TriSubdivision
This is the abstract parent class for all subdivision strategies. Each of its
implementations defines a concrete solution to split a single edge of a
WETriangleMesh.-
Field Summary
Fields -
Constructor Summary
Constructors -
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.Comparator<? super WingedEdge>Returns theComparatorused to sort a mesh's edge list based on a certain criteria.voidsetEdgeOrdering(Comparator<? super WingedEdge> order) Sets the given edge listComparatorfor a strategy implementation.
-
Field Details
-
DEFAULT_ORDERING
-
-
Constructor Details
-
SubdivisionStrategy
public SubdivisionStrategy()
-
-
Method Details
-
computeSplitPoints
Computes a number of points on (or near) the given edge which are used for splitting the edge in smaller segments.- Parameters:
edge- edge to split- Returns:
- list of split points
-
getEdgeOrdering
Returns theComparatorused to sort a mesh's edge list based on a certain criteria. By default theEdgeLengthComparatoris used.- Returns:
- edge comparator
-
setEdgeOrdering
Sets the given edge listComparatorfor a strategy implementation.- Parameters:
order-
-