java.lang.Object
com.treemap.swing.fastvoronoi.convexhull.Polytope
Direct Known Subclasses:
ConvexHull

public class Polytope extends 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 Details

  • Constructor Details

    • Polytope

      public Polytope()
  • Method Details

    • 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)