Class TriangleN1_f


  • public class TriangleN1_f
    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_f

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

        public TriangleN1_f()
      • TriangleN1_f

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

        public TriangleN1_f​(Triangle_f t)
        constructor
    • Method Detail

      • getCPtr

        public static long getCPtr​(TriangleN1_f obj)
      • delete

        public void delete()
      • getFaceNormal

        public Vector3Df getFaceNormal()
        returns the facenormal of this triangle
      • halfSpaceDist

        public float halfSpaceDist​(Vector3Df x)
        calculates the distance to the halfspace of the triangle
      • getVertex

        public Vector3Df getVertex​(long i)
      • calcFaceNormal

        public Vector3Df calcFaceNormal()
      • set

        public void set​(long i,
                        Vector3Df d)
      • isInside

        public boolean isInside​(Vector3Df x)
        tests wheather the point x is inside the triangle
      • applyTransform

        public void applyTransform​(Transform3Df t3d)