Class RawFacetDistances
java.lang.Object
cz.fidentis.analyst.engines.distance.measurement.RawFacetDistances
- All Implemented Interfaces:
FacetDistances
,Iterable<DistanceRecord>
The result of the facet-to-surface distance measurement, i.e.,
distances and nearest neighbors of all vertices of a single mesh facet.
Weights are set to 1.0.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.fidentis.analyst.engines.distance.measurement.FacetDistances
iterator, stream
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
RawFacetDistances
Constructor.- Parameters:
facet
- A mesh facet whose distance was measureddistances
- Measured distances at facet's points. The size and order of values have to correspond to facet's vertices.nearestPoints
- Closets points (nearest neighbors). The size and order of values have to correspond to facet's vertices.
-
-
Method Details
-
get
Description copied from interface:FacetDistances
Returns distance measurement for a single facet's vertex.- Specified by:
get
in interfaceFacetDistances
- Parameters:
pointIndex
- index of the facet's vertex from the range from zero toMeshFacet.getNumberOfVertices()
- 1.- Returns:
- the mesh point with the distance value
-
size
public int size()Description copied from interface:FacetDistances
Returns the number of facet's vertices, i.e., the number of measured distances.- Specified by:
size
in interfaceFacetDistances
- Returns:
- the number of facet's vertices, i.e., the number of measured distances.
-
getMeasuredFacet
Description copied from interface:FacetDistances
Returns the source facet from which the measurement was performed.- Specified by:
getMeasuredFacet
in interfaceFacetDistances
- Returns:
- the source facet from which the measurement was performed.
-