Interface TriangleFan

All Superinterfaces:
Iterable<MeshTriangle>
All Known Implementing Classes:
TriangleFanImpl

public interface TriangleFan extends Iterable<MeshTriangle>
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 Type
    Method
    Description
    Triangle indices of the 1-ring neighborhood.
    Vertex indices of the 1-ring neighborhood.
    boolean
    Returns true if the triangle fan is boundary (i.e., is not enclosed).
    boolean
    Returns true if the triangle fan is enclosed (i.e., is not boundary).
    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()
      Returns true 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()
      Returns true 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

      List<Integer> 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

      List<Integer> 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 interface Iterable<MeshTriangle>
      Returns:
      A mesh triangle