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
-
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.Comparator<? super WingedEdge>
Returns theComparator
used to sort a mesh's edge list based on a certain criteria.void
setEdgeOrdering
(Comparator<? super WingedEdge> order) Sets the given edge listComparator
for 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 theComparator
used to sort a mesh's edge list based on a certain criteria. By default theEdgeLengthComparator
is used.- Returns:
- edge comparator
-
setEdgeOrdering
Sets the given edge listComparator
for a strategy implementation.- Parameters:
order
-
-