Class Face

java.lang.Object
toxi.geom.mesh.Face
Direct Known Subclasses:
WEFace

public class Face extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • computeNormal

      public void computeNormal()
    • flipVertexOrder

      public void flipVertexOrder()
    • getCentroid

      public Vec3D getCentroid()
    • getVertices

      public final Vertex[] getVertices(Vertex[] verts)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toTriangle

      public Triangle3D toTriangle()
      Creates a generic Triangle3D instance using this face's vertices. The new instance is made up of copies of the original vertices and manipulating them will not impact the originals.
      Returns:
      triangle copy of this mesh face