Interface FacetDistances

All Superinterfaces:
Iterable<DistanceRecord>
All Known Implementing Classes:
FacetDistancesDecorator, PrioritySphereDecorator, RawFacetDistances, ZeroWeightsDecorator

public interface FacetDistances extends Iterable<DistanceRecord>
The result of the surface-to-surface distance measurement (i.e., multiple facets towards multiple facets).
  • Method Details

    • get

      DistanceRecord get(int pointIndex)
      Returns distance measurement for a single facet's vertex.
      Parameters:
      pointIndex - index of the facet's vertex from the range from zero to MeshFacet.getNumberOfVertices() - 1.
      Returns:
      the mesh point with the distance value
      Throws:
      IndexOutOfBoundsException - if the index is out of range
    • size

      int size()
      Returns the number of facet's vertices, i.e., the number of measured distances.
      Returns:
      the number of facet's vertices, i.e., the number of measured distances.
    • getMeasuredFacet

      MeshFacet getMeasuredFacet()
      Returns the source facet from which the measurement was performed.
      Returns:
      the source facet from which the measurement was performed.
    • iterator

      default Iterator<DistanceRecord> iterator()
      Specified by:
      iterator in interface Iterable<DistanceRecord>
    • stream

      default Stream<DistanceRecord> stream()
      Returns a stream distance measurement records for all facet's vertices
      Returns:
      a stream distance measurement records for all facet's vertices