Package org.robwork.sdurw_geometry
Class IndexedTriangleN3
- java.lang.Object
-
- org.robwork.sdurw_geometry.IndexedTriangleN3
-
public class IndexedTriangleN3 extends java.lang.Object
indexed triangle class with an additional index for 3 normals one for each vertice in
the triangle
-
-
Constructor Summary
Constructors Constructor Description IndexedTriangleN3()
IndexedTriangleN3(int p1, int p2, int p3, int n1, int n2, int n3)
constructorIndexedTriangleN3(long cPtr, boolean cMemoryOwn)
IndexedTriangleN3(IndexedTriangleN3 f)
copy constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
int
get(long i)
static long
getCPtr(IndexedTriangleN3 obj)
SWIGTYPE_p_unsigned_short
getNormalIdx(long i)
get the index of vertice normal i.SWIGTYPE_p_unsigned_short
getVertexIdx(long i)
returns the index of vertex i of the trianglevoid
set(long i, int d)
-
-
-
Constructor Detail
-
IndexedTriangleN3
public IndexedTriangleN3(long cPtr, boolean cMemoryOwn)
-
IndexedTriangleN3
public IndexedTriangleN3()
-
IndexedTriangleN3
public IndexedTriangleN3(int p1, int p2, int p3, int n1, int n2, int n3)
constructor- Parameters:
p1
- [in] vertice index 1p2
- [in] vertice index 2p3
- [in] vertice index 3n1
- [in] normal index for vertice 1n2
- [in] normal index for vertice 2n3
- [in] normal index for vertice 3
-
IndexedTriangleN3
public IndexedTriangleN3(IndexedTriangleN3 f)
copy constructor
- Parameters:
f
- [in] - The face that is to be copied.
-
-
Method Detail
-
getCPtr
public static long getCPtr(IndexedTriangleN3 obj)
-
delete
public void delete()
-
getVertexIdx
public SWIGTYPE_p_unsigned_short getVertexIdx(long i)
returns the index of vertex i of the triangle
-
getNormalIdx
public SWIGTYPE_p_unsigned_short getNormalIdx(long i)
get the index of vertice normal i.- Parameters:
i
- [in] vertice normal- Returns:
- normal index
-
get
public int get(long i)
-
set
public void set(long i, int d)
-
-