java.lang.Object
com.treemap.swing.fastvoronoi.convexhull.Face
com.treemap.swing.fastvoronoi.convexhull.Facet

public class Facet extends Face
A triangular facet of a 3D polytope. Facets contain a list of incident vertices and edges.
  • Constructor Details

  • Method Details

    • getNormal

      public Vector getNormal()
    • getVertex

      public Vertex getVertex(int index)
    • getVertexCount

      public int getVertexCount()
    • getEdge

      public Edge getEdge(int index)
    • getEdgeCount

      public int getEdgeCount()
    • isFilled

      public boolean isFilled()
      Should this facet be shaded or should only the edges be drawn?
    • setFilled

      public void setFilled(boolean filled)
    • isMarked

      public boolean isMarked()
      Is this facet set to be removed?
    • setMarked

      public void setMarked(boolean marked)
    • behind

      public boolean behind(Vertex test)
      Is the given vertex in front of or behind this face?
    • link

      public void link(Facet f0, Vertex v0, Vertex v1)
      Links the given face f0 with the edge between v0 and v1 with the current face
    • link

      public void link(Edge e)
    • connect

      public void connect(Facet adjacent, Vertex a, Vertex b)
    • connect

      public void connect(Edge e)
    • getMatchingEdge

      public Edge getMatchingEdge(Vertex a, Vertex b)
    • getHorizonEdge

      public Edge getHorizonEdge()
    • orient

      public void orient(Vertex reference)
    • toString

      public String toString()
      Overrides:
      toString in class Object