Class IndexedPolygonNN


  • public class IndexedPolygonNN
    extends IndexedPolygon
    Polygon with N vertices and N normals.
    • Constructor Detail

      • IndexedPolygonNN

        public IndexedPolygonNN​(long cPtr,
                                boolean cMemoryOwn)
    • Method Detail

      • addVertex

        public void addVertex​(int p,
                              int n)
        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
        n - [in] Normal associated to the point
      • removeVertexIdx

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

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