Class Facet
- java.lang.Object
-
- com.macrofocus.treemap.fastvoronoi.convexhull.Face
-
- com.macrofocus.treemap.fastvoronoi.convexhull.Facet
-
public class Facet extends Face
A triangular facet of a 3D polytope. Facets contain a list of incident vertices and edges.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbehind(Vertex test)Is the given vertex in front of or behind this face?voidconnect(Edge e)voidconnect(Facet adjacent, Vertex a, Vertex b)EdgegetEdge(int index)intgetEdgeCount()EdgegetHorizonEdge()EdgegetMatchingEdge(Vertex a, Vertex b)VectorgetNormal()VertexgetVertex(int index)intgetVertexCount()booleanisFilled()Should this facet be shaded or should only the edges be drawn?booleanisMarked()Is this facet set to be removed?voidlink(Edge e)voidlink(Facet f0, Vertex v0, Vertex v1)Links the given face f0 with the edge between v0 and v1 with the current facevoidorient(Vertex reference)voidsetFilled(boolean filled)voidsetMarked(boolean marked)java.lang.StringtoString()
-
-
-
Method Detail
-
getNormal
public Vector getNormal()
-
getVertex
public Vertex getVertex(int index)
-
getVertexCount
public int getVertexCount()
-
getEdge
public Edge getEdge(int index)
-
getEdgeCount
public int getEdgeCount()
-
isFilled
public boolean isFilled()
Should this facet be shaded or should only the edges be drawn?
-
setFilled
public void setFilled(boolean filled)
-
isMarked
public boolean isMarked()
Is this facet set to be removed?
-
setMarked
public void setMarked(boolean marked)
-
behind
public boolean behind(Vertex test)
Is the given vertex in front of or behind this face?
-
link
public void link(Facet f0, Vertex v0, Vertex v1)
Links the given face f0 with the edge between v0 and v1 with the current face
-
link
public void link(Edge e)
-
connect
public void connect(Edge e)
-
getHorizonEdge
public Edge getHorizonEdge()
-
orient
public void orient(Vertex reference)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-