Class ExtrudedPolygon.ShapeData

    • Field Detail

      • capVertexBuffer

        protected java.nio.FloatBuffer capVertexBuffer
        A buffer holding the Cartesian cap vertices of all the shape's boundaries.
      • capNormalBuffer

        protected java.nio.FloatBuffer capNormalBuffer
        A buffer holding the cap normals of all the shape's boundaries.
      • sideVertexBuffer

        protected java.nio.FloatBuffer sideVertexBuffer
        A buffer holding the Cartesian vertices of all the shape's side vertices.
      • sideNormalBuffer

        protected java.nio.FloatBuffer sideNormalBuffer
        A buffer holding the side normals of all the shape's boundaries.
      • sideTextureCoordsBuffer

        protected java.nio.FloatBuffer sideTextureCoordsBuffer
        A buffer holding the texture coordinates of all the shape's faces. Non-null only when texture is applied.
      • capFillIndices

        protected java.nio.IntBuffer capFillIndices
        The indices identifying the cap vertices in a shape data's vertex buffer. Determined when this shape is tessellated, which occurs only once unless the shape's boundaries are re-specified.
      • capFillIndexBuffers

        protected java.util.List<java.nio.IntBuffer> capFillIndexBuffers
        Slices of capFillIndices, one per boundary.
      • tessellationError

        protected boolean tessellationError
        Indicates whether a tessellation error occurred. No more attempts to tessellate will be made if set to true.
    • Constructor Detail

      • ShapeData

        public ShapeData​(DrawContext dc,
                         ExtrudedPolygon shape)
        Constructs an instance using the boundaries of a specified extruded polygon.
        Parameters:
        dc - the current draw context.
        shape - this shape.