Interface FacetDistances
- All Superinterfaces:
Iterable<DistanceRecord>
- All Known Implementing Classes:
FacetDistancesDecorator
,PrioritySphereDecorator
,RawFacetDistances
,ZeroWeightsDecorator
The result of the surface-to-surface distance measurement (i.e., multiple facets towards multiple facets).
-
Method Summary
Modifier and TypeMethodDescriptionget
(int pointIndex) Returns distance measurement for a single facet's vertex.Returns the source facet from which the measurement was performed.default Iterator
<DistanceRecord> iterator()
int
size()
Returns the number of facet's vertices, i.e., the number of measured distances.default Stream
<DistanceRecord> stream()
Returns a stream distance measurement records for all facet's verticesMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
get
Returns distance measurement for a single facet's vertex.- Parameters:
pointIndex
- index of the facet's vertex from the range from zero toMeshFacet.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
- Specified by:
iterator
in interfaceIterable<DistanceRecord>
-
stream
Returns a stream distance measurement records for all facet's vertices- Returns:
- a stream distance measurement records for all facet's vertices
-