Package cz.fidentis.analyst.data.mesh
Interface TriangleFan
- All Superinterfaces:
Iterable<MeshTriangle>
- All Known Implementing Classes:
TriangleFanImpl
1-ring neighborhood of a given mesh point. The neighborhood consists of
a ring of vertices forming triangles around the given central point.
-
Method Summary
Modifier and TypeMethodDescriptionTriangle indices of the 1-ring neighborhood.Vertex indices of the 1-ring neighborhood.boolean
Returnstrue
if the triangle fan is boundary (i.e., is not enclosed).boolean
Returnstrue
if the triangle fan is enclosed (i.e., is not boundary).iterator()
Vertex 1 of the returned triangle always corresponds to the central vertex around which the triangle fan is constructed.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
isEnclosed
boolean isEnclosed()Returnstrue
if the triangle fan is enclosed (i.e., is not boundary).- Returns:
true
if the triangle fan is enclosed (i.e., is not boundary).
-
isBoundary
boolean isBoundary()Returnstrue
if the triangle fan is boundary (i.e., is not enclosed).- Returns:
true
if the triangle fan is enclosed (i.e., is not boundary).
-
getVertices
Vertex indices of the 1-ring neighborhood. If the triangle fan is enclosed then the first and last vertices are the same.- Returns:
- Vertex indices of the 1-ring neighborhood.
-
getTriangles
Triangle indices of the 1-ring neighborhood. The first triangle is related to the edge delimited by first and second vertex, etc. The number of triangles corresponds to the number of vertices minus one.- Returns:
- Triangle indices of the 1-ring neighborhood.
-
iterator
Iterator<MeshTriangle> iterator()Vertex 1 of the returned triangle always corresponds to the central vertex around which the triangle fan is constructed.- Specified by:
iterator
in interfaceIterable<MeshTriangle>
- Returns:
- A mesh triangle
-