Class IndexedPolygonN


  • public class IndexedPolygonN
    extends IndexedPolygon
    Polygon with N vertice indices and 0 normals
    • Constructor Detail

      • IndexedPolygonN

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

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

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

      • addVertex

        public void addVertex​(int 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
        Returns:
        Number of vertices