Class ConvexPolyhedron3D.TriangularFace

java.lang.Object
org.episteme.core.mathematics.geometry.boundaries.ConvexPolyhedron3D.TriangularFace
All Implemented Interfaces:
Boundary3D.Face
Enclosing class:
ConvexPolyhedron3D

public static class ConvexPolyhedron3D.TriangularFace extends Object implements Boundary3D.Face
Represents a triangular face.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

  • Method Details

    • getVertices

      public List<Point3D> getVertices()
      Description copied from interface: Boundary3D.Face
      Returns the vertices of this face.
      Specified by:
      getVertices in interface Boundary3D.Face
      Returns:
      list of vertices
    • getNormal

      public Vector3D getNormal()
      Description copied from interface: Boundary3D.Face
      Returns the outward-facing normal vector.
      Specified by:
      getNormal in interface Boundary3D.Face
      Returns:
      the normal
    • getArea

      public Real getArea()
      Description copied from interface: Boundary3D.Face
      Returns the area of this face.
      Specified by:
      getArea in interface Boundary3D.Face
      Returns:
      the area
    • signedDistanceTo

      public Real signedDistanceTo(Point3D p)
      Signed distance from a point to the plane of this face. Positive = in front of face (outside), negative = behind.
    • isInFront

      public boolean isInFront(Point3D p)
      Checks if a point is in front of this face (outside the polyhedron).