Class Facet


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

      • 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​(Edge e)
      • getHorizonEdge

        public Edge getHorizonEdge()
      • orient

        public void orient​(Vertex reference)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object