Class Facet
- java.lang.Object
-
- com.macrofocus.treemap.fastvoronoi.originalconvexhull.Facet
-
public class Facet extends java.lang.ObjectFacet class connected over double-connected edge list. Contains 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?booleanconflict(Vertex test)Point2DgetDualPoint()EdgegetEdge(int index)intgetEdgeCount()EdgegetHorizon()intgetIndex()ConflictListgetList()VectorgetNormal()VertexgetVertex(int i)intgetVertexCount()booleanisMarked()booleanisVisibleFromBelow()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 orient)voidremoveConflict()voidsetIndex(int index)voidsetList(ConflictList list)voidsetMarked(boolean marked)voidsetNormal(Vector normal)java.lang.StringtoString()
-
-
-
Method Detail
-
getIndex
public int getIndex()
-
setIndex
public void setIndex(int index)
-
orient
public void orient(Vertex orient)
-
getList
public ConflictList getList()
-
setList
public void setList(ConflictList list)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getVertex
public Vertex getVertex(int i)
-
isVisibleFromBelow
public boolean isVisibleFromBelow()
-
getEdgeCount
public int getEdgeCount()
-
getEdge
public Edge getEdge(int index)
-
getNormal
public Vector getNormal()
-
setNormal
public void setNormal(Vector normal)
-
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)
-
getDualPoint
public Point2D getDualPoint()
-
behind
public boolean behind(Vertex test)
Is the given vertex in front of or behind this face?
-
conflict
public boolean conflict(Vertex test)
-
getVertexCount
public int getVertexCount()
-
setMarked
public void setMarked(boolean marked)
-
isMarked
public boolean isMarked()
-
removeConflict
public void removeConflict()
-
getHorizon
public Edge getHorizon()
-
-