Package org.robwork.sdurw_geometry
Class TriangleN3_f
- java.lang.Object
-
- org.robwork.sdurw_geometry.TriangleN3_f
-
public class TriangleN3_f extends java.lang.Object
Triangle facet. triangle class that stores one normal for each
vertex in the triangle.
-
-
Constructor Summary
Constructors Constructor Description TriangleN3_f()
TriangleN3_f(long cPtr, boolean cMemoryOwn)
TriangleN3_f(Triangle_f t, Vector3Df n1, Vector3Df n2, Vector3Df n3)
constructor from triangle and normalsTriangleN3_f(Vector3Df p1, Vector3Df p2, Vector3Df p3, Vector3Df n1, Vector3Df n2, Vector3Df n3)
constructor, with all input defined
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3Df
calcFaceNormal()
void
delete()
Vector3Df
get(long i)
static long
getCPtr(TriangleN3_f obj)
Vector3Df
getNormal(long i)
get normal of vertice iTriangle_f
getTriangle()
Vector3Df
getVertex(long i)
void
set(long i, Vector3Df d)
TriangleN3_f
transform(Transform3Df t3d)
Returns TriangleN2 transformed by t3d.
-
-
-
Constructor Detail
-
TriangleN3_f
public TriangleN3_f(long cPtr, boolean cMemoryOwn)
-
TriangleN3_f
public TriangleN3_f()
-
TriangleN3_f
public TriangleN3_f(Vector3Df p1, Vector3Df p2, Vector3Df p3, Vector3Df n1, Vector3Df n2, Vector3Df n3)
constructor, with all input defined
-
TriangleN3_f
public TriangleN3_f(Triangle_f t, Vector3Df n1, Vector3Df n2, Vector3Df n3)
constructor from triangle and normals
-
-
Method Detail
-
getCPtr
public static long getCPtr(TriangleN3_f obj)
-
delete
public void delete()
-
getNormal
public Vector3Df getNormal(long i)
get normal of vertice i- Parameters:
i
- [in] index of vertice- Returns:
- normal of the i'th vertice
-
getVertex
public Vector3Df getVertex(long i)
-
get
public Vector3Df get(long i)
-
set
public void set(long i, Vector3Df d)
-
calcFaceNormal
public Vector3Df calcFaceNormal()
-
transform
public TriangleN3_f transform(Transform3Df t3d)
Returns TriangleN2 transformed by t3d.
-
getTriangle
public Triangle_f getTriangle()
-
-