Class SimpleTriangleMesh.FaceIterator<T>

java.lang.Object
org.apache.commons.geometry.euclidean.threed.mesh.SimpleTriangleMesh.FaceIterator<T>
Type Parameters:
T - Type returned by the iterator
All Implemented Interfaces:
Iterator<T>
Enclosing class:
SimpleTriangleMesh

private final class SimpleTriangleMesh.FaceIterator<T> extends Object implements Iterator<T>
Internal class for iterating through the mesh faces and extracting a value from each.
  • Field Details

    • index

      private int index
      The current index of the iterator.
    • fn

      private final Function<? super TriangleMesh.Face,T> fn
      Function to apply to each face in the mesh.
  • Constructor Details

    • FaceIterator

      FaceIterator(Function<? super TriangleMesh.Face,T> fn)
      Construct a new instance for iterating through the mesh faces and extracting a value from each.
      Parameters:
      fn - function to apply to each face in order to obtain the iterated value
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>