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
Internal class for iterating through the mesh faces and extracting a value from each.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function
<? super TriangleMesh.Face, T> Function to apply to each face in the mesh.private int
The current index of the iterator. -
Constructor Summary
ConstructorsConstructorDescriptionFaceIterator
(Function<? super TriangleMesh.Face, T> fn) Construct a new instance for iterating through the mesh faces and extracting a value from each. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
index
private int indexThe current index of the iterator. -
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