Class SubdivisionStrategy

java.lang.Object
toxi.geom.mesh.subdiv.SubdivisionStrategy
Direct Known Subclasses:
DisplacementSubdivision, DualDisplacementSubdivision, DualSubdivision, MidpointSubdivision, TriSubdivision

public abstract class SubdivisionStrategy extends Object
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 Details

  • Constructor Details

    • SubdivisionStrategy

      public SubdivisionStrategy()
  • Method Details

    • computeSplitPoints

      public abstract List<Vec3D> computeSplitPoints(WingedEdge edge)
      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

      public Comparator<? super WingedEdge> getEdgeOrdering()
      Returns the Comparator used to sort a mesh's edge list based on a certain criteria. By default the EdgeLengthComparator is used.
      Returns:
      edge comparator
    • setEdgeOrdering

      public void setEdgeOrdering(Comparator<? super WingedEdge> order)
      Sets the given edge list Comparator for a strategy implementation.
      Parameters:
      order -