Class Face<X extends Point_>
java.lang.Object
Jcg.polyhedron.Face<X>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdegree()Compute the degree of the face (number of bounding edges)Compute and return the barycenter (2d or 3d) of the vertices of the facegetEdge()Point_[]Return an array storing the geometric coordinates of the vertices of the faceint[]getVertexIndices(Polyhedron_3<X> polyhedron) Return an array storing the indices of the vertices in the facebooleanisQuad()true iff the face is a quadbooleantrue iff the face is a trianglevoidtoString()
-
Field Details
-
halfedge
-
index
public int indexan integer that can be used to index faces (useful for some applications) -
tag
public int tagan integer that can be used to tag faces (useful for dealing with colors, ...)
-
-
Constructor Details
-
Face
public Face()
-
-
Method Details
-
degree
public int degree()Compute the degree of the face (number of bounding edges) -
isTriangle
public boolean isTriangle()true iff the face is a triangle -
isQuad
public boolean isQuad()true iff the face is a quad -
getVertexIndices
Return an array storing the indices of the vertices in the face- Parameters:
polyhedron- the input mesh- Returns:
- array storing indices of the vertices of the face
-
getVertexCoordinates
Return an array storing the geometric coordinates of the vertices of the face- Returns:
- the points (2d or 3d) corresponding to the geometric coordinates of the face
-
getBarycenter
Compute and return the barycenter (2d or 3d) of the vertices of the face- Returns:
- the barycenter of the vertices of the face
-
setEdge
-
getEdge
-
toString
-