Class PolygonTessellator


  • public class PolygonTessellator
    extends java.lang.Object
    • Field Detail

      • enabled

        protected boolean enabled
      • tess

        protected com.jogamp.opengl.glu.GLUtessellator tess
      • interiorIndices

        protected java.nio.IntBuffer interiorIndices
      • boundaryIndices

        protected java.nio.IntBuffer boundaryIndices
      • isBoundaryEdge

        protected boolean isBoundaryEdge
      • vertexCoord

        protected double[] vertexCoord
    • Constructor Detail

      • PolygonTessellator

        public PolygonTessellator()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • getInteriorIndices

        public java.nio.IntBuffer getInteriorIndices()
      • getBoundaryIndices

        public java.nio.IntBuffer getBoundaryIndices()
      • reset

        public void reset()
      • setPolygonNormal

        public void setPolygonNormal​(double x,
                                     double y,
                                     double z)
      • beginPolygon

        public void beginPolygon()
      • beginContour

        public void beginContour()
      • addVertex

        public void addVertex​(double x,
                              double y,
                              double z,
                              int index)
      • endContour

        public void endContour()
      • endPolygon

        public void endPolygon()
      • tessBegin

        protected void tessBegin​(int type)
      • tessEdgeFlag

        protected void tessEdgeFlag​(boolean boundaryEdge)
      • tessVertex

        protected void tessVertex​(java.lang.Object vertexData)
      • tessEnd

        protected void tessEnd()
      • tessCombine

        protected void tessCombine​(double[] coords,
                                   java.lang.Object[] vertexData,
                                   float[] weight,
                                   java.lang.Object[] outData)
      • addIndex

        protected java.nio.IntBuffer addIndex​(java.nio.IntBuffer buffer,
                                              int index)