Package org.robwork.sdurw_geometry
Class IndexedPolygonN_32
- java.lang.Object
-
- org.robwork.sdurw_geometry.IndexedPolygon_32
-
- org.robwork.sdurw_geometry.IndexedPolygonN_32
-
public class IndexedPolygonN_32 extends IndexedPolygon_32
Polygon with N vertice indices and 0 normals
-
-
Constructor Summary
Constructors Constructor Description IndexedPolygonN_32()
Constructs IndexedPolygon with space for n verticesIndexedPolygonN_32(long n)
Constructs IndexedPolygon with space for n verticesIndexedPolygonN_32(long cPtr, boolean cMemoryOwn)
IndexedPolygonN_32(SWIGTYPE_p_std__vectorT_unsigned_int_t vertices)
Constructs IndexedPolygonN with the vertices specified
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addVertex(long p)
Adds a vertex to the polygon
The point will be added to the end of the list of pointsvoid
delete()
static long
getCPtr(IndexedPolygonN_32 obj)
SWIGTYPE_p_unsigned_int
getVertexIdx(long i)
returns the index of vertex i of the trianglevoid
removeVertexIdx(long i)
Removes vertex from the polygon
long
size()
<T>::size-
Methods inherited from class org.robwork.sdurw_geometry.IndexedPolygon_32
get, getCPtr, set
-
-
-
-
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
-
IndexedPolygonN_32
public IndexedPolygonN_32(SWIGTYPE_p_std__vectorT_unsigned_int_t vertices)
Constructs IndexedPolygonN with the vertices specified
-
-
Method Detail
-
getCPtr
public static long getCPtr(IndexedPolygonN_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
-
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 classIndexedPolygon_32
- Returns:
- Number of vertices
-
-