Package toxi.geom.mesh.subdiv
Class EdgeLengthComparator
java.lang.Object
toxi.geom.mesh.subdiv.EdgeLengthComparator
- All Implemented Interfaces:
Comparator<WingedEdge>
Comparator used by
SubdivisionStrategy.getEdgeOrdering()
to define
the order of edges to be subdivided. This one prioritizes longer edges.-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
EdgeLengthComparator
public EdgeLengthComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<WingedEdge>
-