类 TriangleTessellator


  • public class TriangleTessellator
    extends java.lang.Object
    • 构造器详细资料

      • TriangleTessellator

        public TriangleTessellator()
    • 方法详细资料

      • getTriangles

        public void getTriangles​(org.meteoinfo.geometry.shape.PolygonZ polygon,
                                 TriangleTessellator.TessellatorListener listener)
        Tessellates a shape that is, tiling of the shape in a pattern of triangles that fills the shape with no overlaps and no gaps. Returns a set of triangles to the given TriangleTessellator.TessellatorListener whenever done.
        参数:
        shape - The shape to tessellate.
        hole - Shape of the hole in the tessellation (optional).
        listener - Instance of TriangleTessellator.TessellatorListener that will be invoked whenever tessellation is done or fails.
      • sendSuccess

        protected void sendSuccess()
      • sendError

        protected void sendError​(java.lang.String message)