Package org.robwork.sdurw_geometry
Class IndexedPolygonNN_32
- java.lang.Object
-
- org.robwork.sdurw_geometry.IndexedPolygon_32
-
- org.robwork.sdurw_geometry.IndexedPolygonNN_32
-
public class IndexedPolygonNN_32 extends IndexedPolygon_32
Polygon with N vertices and N normals.
-
-
Constructor Summary
Constructors Constructor Description IndexedPolygonNN_32(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addVertex(long p, long n)
Adds a vertex to the polygon
The point will be added to the end of the list of pointsvoid
delete()
static long
getCPtr(IndexedPolygonNN_32 obj)
SWIGTYPE_p_unsigned_int
getNormalIdx(long i)
returns the index of vertex i of the triangleSWIGTYPE_p_unsigned_int
getVertexIdx(long i)
returns the index of vertex i of the trianglevoid
removeVertexIdx(long i)
Removes vertex from the polygon
-
Methods inherited from class org.robwork.sdurw_geometry.IndexedPolygon_32
get, getCPtr, set, size
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(IndexedPolygonNN_32 obj)
-
delete
public void delete()
- Overrides:
delete
in classIndexedPolygon_32
-
getVertexIdx
public SWIGTYPE_p_unsigned_int getVertexIdx(long i)
returns the index of vertex i of the triangle- Overrides:
getVertexIdx
in classIndexedPolygon_32
-
getNormalIdx
public SWIGTYPE_p_unsigned_int getNormalIdx(long i)
returns the index of vertex i of the triangle
-
addVertex
public void addVertex(long p, long 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 addn
- [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
-
-