Interface Tessellator.Monitor

Enclosing class:
Tessellator

public static interface Tessellator.Monitor
Implementation of this interface will receive calls with internal data at each step of the triangulation algorithm. This is of use for debugging complex cases, as well as gaining insight into the way the algorithm works. Data provided includes a status string containing the current mode, list of points representing the current linked-list of internal nodes used for triangulation, and a list of triangles so far created by the algorithm.
  • Field Details

  • Method Details

    • currentState

      void currentState(String status, List<Point> points, List<Tessellator.Triangle> tessellation)
      Each loop of the main earclip algorithm will call this with the current state
    • startSplit

      void startSplit(String status, List<Point> leftPolygon, List<Point> rightPolygon)
      When a new polygon split is entered for mode=SPLIT, this is called.
    • endSplit

      void endSplit(String status)
      When a polygon split is completed, this is called.