Class PGraphicsOpenGL.Tessellator.TessellatorCallback

    • Method Detail

      • init

        public void init​(boolean addCache,
                         boolean strokeTess,
                         boolean calcNorm,
                         boolean clampXY)
      • addIndex

        protected void addIndex​(int tessIdx)
      • calcTriNormal

        protected void calcTriNormal​(int tessIdx0,
                                     int tessIdx1,
                                     int tessIdx2)
      • combine

        public void combine​(double[] coords,
                            Object[] data,
                            float[] weight,
                            Object[] outData)
        Implementation of the GLU_TESS_COMBINE callback.
        Specified by:
        combine in interface PGL.TessellatorCallback
        Parameters:
        coords - is the 3-vector of the new vertex
        data - is the vertex data to be combined, up to four elements. This is useful when mixing colors together or any other user data that was passed in to gluTessVertex.
        weight - is an array of weights, one for each element of "data" that should be linearly combined for new values.
        outData - is the set of new values of "data" after being put back together based on the weights. it's passed back as a single element Object[] array because that's the closest that Java gets to a pointer.