Class Polytope
- java.lang.Object
-
- com.macrofocus.treemap.fastvoronoi.convexhull.Polytope
-
- Direct Known Subclasses:
ConvexHull
public class Polytope extends java.lang.ObjectA 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.
-
-
Constructor Summary
Constructors Constructor Description Polytope()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFacet(Facet f)voidaddVertex(Vertex v)voidclear()doublegetDiameter()FacetgetFacet(int index)intgetFacetCount()VertexgetVertex(int index)intgetVertexCount()voidremoveFacet(Facet f)voidremoveVertex(Vertex v)voidsetDiameter(double diameter)
-
-
-
Field Detail
-
points
protected java.util.List<Vertex> points
-
-
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)
-
-