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 Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String COMPLETED  
      static java.lang.String FAILED  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void currentState​(java.lang.String status, java.util.List<Point> points, java.util.List<Tessellator.Triangle> tessellation)
      Each loop of the main earclip algorithm will call this with the current state
      void endSplit​(java.lang.String status)
      When a polygon split is completed, this is called.
      void startSplit​(java.lang.String status, java.util.List<Point> leftPolygon, java.util.List<Point> rightPolygon)
      When a new polygon split is entered for mode=SPLIT, this is called.
    • Method Detail

      • currentState

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

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

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