Class 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 Detail

      • TriangleN1

        public TriangleN1​(long cPtr,
                          boolean cMemoryOwn)
      • TriangleN1

        public TriangleN1()
      • TriangleN1

        public TriangleN1​(Vector3D p1,
                          Vector3D p2,
                          Vector3D p3)
        constructor, calculates the face normal from vertex data
      • TriangleN1

        public TriangleN1​(Triangle t)
        constructor
    • 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()
      • 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)
      • getTriangle

        public Triangle getTriangle()