Class Polytope

  • Direct Known Subclasses:
    ConvexHull

    public class Polytope
    extends java.lang.Object
    A collection of vertices, edges, and facets stored in an object- oriented version of a DCEL (doubly connected edge list). Polytopes also keep a current transformation matrix that determines how they will be rendered in 3D.
    • Field Detail

      • points

        protected java.util.List<Vertex> points
    • Constructor Detail

      • Polytope

        public Polytope()
    • Method Detail

      • clear

        public void clear()
      • getDiameter

        public double getDiameter()
      • setDiameter

        public void setDiameter​(double diameter)
      • getVertex

        public Vertex getVertex​(int index)
      • getVertexCount

        public int getVertexCount()
      • addVertex

        public void addVertex​(Vertex v)
      • removeVertex

        public void removeVertex​(Vertex v)
      • getFacet

        public Facet getFacet​(int index)
      • getFacetCount

        public int getFacetCount()
      • addFacet

        public void addFacet​(Facet f)
      • removeFacet

        public void removeFacet​(Facet f)