Package org.robwork.sdurw_geometry
Class IndexedTriangle
- java.lang.Object
-
- org.robwork.sdurw_geometry.IndexedTriangle
-
public class IndexedTriangle extends java.lang.Objectindexed triangle class that has 3 indices that points to 3
vertices in an array typically used with the IndexedTriMesh class.
the indice type (size) is templated.
-
-
Constructor Summary
Constructors Constructor Description IndexedTriangle()default constructorIndexedTriangle(int p1, int p2, int p3)constructorIndexedTriangle(long cPtr, boolean cMemoryOwn)IndexedTriangle(IndexedTriangle f)copy constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()intget(long i)static longgetCPtr(IndexedTriangle obj)SWIGTYPE_p_unsigned_shortgetVertexIdx(long i)returns the index of vertex i of the trianglevoidset(long i, int d)
-
-
-
Constructor Detail
-
IndexedTriangle
public IndexedTriangle(long cPtr, boolean cMemoryOwn)
-
IndexedTriangle
public IndexedTriangle()
default constructor
-
IndexedTriangle
public IndexedTriangle(int p1, int p2, int p3)constructor- Parameters:
p1- [in] indice to vertice 1p2- [in] indice to vertice 2p3- [in] indice to vertice 3
-
IndexedTriangle
public IndexedTriangle(IndexedTriangle f)
copy constructor
- Parameters:
f- [in] - The face that is to be copied.
-
-
Method Detail
-
getCPtr
public static long getCPtr(IndexedTriangle obj)
-
delete
public void delete()
-
getVertexIdx
public SWIGTYPE_p_unsigned_short getVertexIdx(long i)
returns the index of vertex i of the triangle
-
get
public int get(long i)
-
set
public void set(long i, int d)
-
-