Class SimpleTriangleIterator

  • All Implemented Interfaces:
    Iterator<SimpleTriangle>

    public class SimpleTriangleIterator
    extends Object
    implements Iterator<SimpleTriangle>
    An implementation of an iterator for looping through the triangles implicit in a Triangulated Irregular Network.

    Note: The Tinfour incremental TIN classes do not actual construct triangle objects as part of their structure. The fundamental element in a TIN is the edge structure. Triangle objects are constructed by the iterator at run time. This approach reduces the overall memory requirements for the TIN.

    This iterator will identify all unique triangles implicit in the structure of the TIN and will deliver them to the calling application.

    This class is not thread safe. Applications must not modify the TIN (by adding or removing points) while using the iterator.