Package org.robwork.sdurw_geometry
Class IndexedPolygonN
- java.lang.Object
-
- org.robwork.sdurw_geometry.IndexedPolygon
-
- org.robwork.sdurw_geometry.IndexedPolygonN
-
public class IndexedPolygonN extends IndexedPolygon
Polygon with N vertice indices and 0 normals
-
-
Constructor Summary
Constructors Constructor Description IndexedPolygonN()Constructs IndexedPolygon with space for n verticesIndexedPolygonN(long n)Constructs IndexedPolygon with space for n verticesIndexedPolygonN(long cPtr, boolean cMemoryOwn)IndexedPolygonN(SWIGTYPE_p_std__vectorT_unsigned_short_t vertices)Constructs IndexedPolygonN with the vertices specified
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVertex(int p)Adds a vertex to the polygon
The point will be added to the end of the list of pointsvoiddelete()static longgetCPtr(IndexedPolygonN obj)SWIGTYPE_p_unsigned_shortgetVertexIdx(long i)returns the index of vertex i of the trianglevoidremoveVertexIdx(long i)Removes vertex from the polygon
longsize()<T>::size-
Methods inherited from class org.robwork.sdurw_geometry.IndexedPolygon
get, getCPtr, set
-
-
-
-
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
-
IndexedPolygonN
public IndexedPolygonN(SWIGTYPE_p_std__vectorT_unsigned_short_t vertices)
Constructs IndexedPolygonN with the vertices specified
-
-
Method Detail
-
getCPtr
public static long getCPtr(IndexedPolygonN obj)
-
delete
public void delete()
- Overrides:
deletein classIndexedPolygon
-
getVertexIdx
public SWIGTYPE_p_unsigned_short getVertexIdx(long i)
returns the index of vertex i of the triangle- Overrides:
getVertexIdxin classIndexedPolygon
-
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:
sizein classIndexedPolygon- Returns:
- Number of vertices
-
-