Class Polytope
- java.lang.Object
-
- com.macrofocus.treemap.fastvoronoi.convexhull.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.
-
-
Constructor Summary
Constructors Constructor Description Polytope()
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
-
-
-
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)
-
-