Package org.robwork.sdurw_geometry
Class TriangleN1
- java.lang.Object
-
- org.robwork.sdurw_geometry.TriangleN1
-
public class TriangleN1 extends java.lang.Object
Triangle facet. triangle class of type N1, which means that
beside the plain triangle the face normal of the triangle is saved
with the facenormal.
-
-
Constructor Summary
Constructors Constructor Description TriangleN1()
TriangleN1(long cPtr, boolean cMemoryOwn)
TriangleN1(Triangle t)
constructorTriangleN1(Triangle t, Vector3D n)
constructorTriangleN1(Vector3D p1, Vector3D p2, Vector3D p3)
constructor, calculates the face normal from vertex dataTriangleN1(Vector3D p1, Vector3D p2, Vector3D p3, Vector3D n)
constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyTransform(Transform3D t3d)
Vector3D
calcFaceNormal()
void
delete()
Vector3D
get(long i)
static long
getCPtr(TriangleN1 obj)
Vector3D
getFaceNormal()
returns the facenormal of this triangleTriangle
getTriangle()
Vector3D
getVertex(long i)
double
halfSpaceDist(Vector3D x)
calculates the distance to the halfspace of the triangleboolean
isInside(Vector3D x)
tests wheather the point x is inside the trianglevoid
set(long i, Vector3D d)
TriangleN1
transform(Transform3D t3d)
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(TriangleN1 obj)
-
delete
public void delete()
-
getFaceNormal
public Vector3D getFaceNormal()
returns the facenormal of this triangle
-
halfSpaceDist
public double halfSpaceDist(Vector3D x)
calculates the distance to the halfspace of the triangle
-
getVertex
public Vector3D getVertex(long i)
-
calcFaceNormal
public Vector3D calcFaceNormal()
-
get
public Vector3D get(long i)
-
set
public void set(long i, Vector3D d)
-
isInside
public boolean isInside(Vector3D x)
tests wheather the point x is inside the triangle
-
applyTransform
public void applyTransform(Transform3D t3d)
-
transform
public TriangleN1 transform(Transform3D t3d)
-
getTriangle
public Triangle getTriangle()
-
-