toxi.geom.mesh.subdiv
Class FaceCountComparator

java.lang.Object
  extended by toxi.geom.mesh.subdiv.FaceCountComparator
All Implemented Interfaces:
java.util.Comparator<WingedEdge>

public class FaceCountComparator
extends java.lang.Object
implements java.util.Comparator<WingedEdge>

Comparator used by SubdivisionStrategy.getEdgeOrdering() to define the order of edges to be subdivided. This one prioritizes edges with the most faces associated.


Constructor Summary
FaceCountComparator()
           
 
Method Summary
 int compare(WingedEdge e1, WingedEdge e2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

FaceCountComparator

public FaceCountComparator()
Method Detail

compare

public int compare(WingedEdge e1,
                   WingedEdge e2)
Specified by:
compare in interface java.util.Comparator<WingedEdge>