Class IndexedPolygonN_32


  • public class IndexedPolygonN_32
    extends IndexedPolygon_32
    Polygon with N vertice indices and 0 normals
    • Constructor Detail

      • IndexedPolygonN_32

        public IndexedPolygonN_32​(long cPtr,
                                  boolean cMemoryOwn)
      • IndexedPolygonN_32

        public IndexedPolygonN_32()
        Constructs IndexedPolygon with space for n vertices
      • IndexedPolygonN_32

        public IndexedPolygonN_32​(long n)
        Constructs IndexedPolygon with space for n vertices
    • Method Detail

      • addVertex

        public void addVertex​(long p)
        Adds a vertex to the polygon

        The point will be added to the end of the list of points
        Parameters:
        p - [in] The point to add
      • removeVertexIdx

        public void removeVertexIdx​(long i)
        Removes vertex from the polygon

        Parameters:
        i - [in] Index of the point to remove
      • size

        public long size()
        <T>::size
        Overrides:
        size in class IndexedPolygon_32
        Returns:
        Number of vertices