# Class Polytope

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 Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected List<Vertex>`
  `points`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Polytope()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addFacet(Facet f)`
  `void`
  `addVertex(Vertex v)`
  `void`
  `clear()`
  `double`
  `getDiameter()`
  `Facet`
  `getFacet(int index)`
  `int`
  `getFacetCount()`
  `Vertex`
  `getVertex(int index)`
  `int`
  `getVertexCount()`
  `void`
  `removeFacet(Facet f)`
  `void`
  `removeVertex(Vertex v)`
  `void`
  `setDiameter(double diameter)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### points

    protected List<Vertex> points

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