Class BatchDistanceNearestNeighborsCombined.CombinedCache
java.lang.Object
cz.fidentis.analyst.engines.face.batch.distance.impl.BatchDistanceNearestNeighbors.DistCache<org.apache.commons.lang3.tuple.ImmutablePair<javax.vecmath.Point3d,Double>>
cz.fidentis.analyst.engines.face.batch.distance.impl.BatchDistanceNearestNeighborsCombined.CombinedCache
- Enclosing class:
BatchDistanceNearestNeighborsCombined
protected static class BatchDistanceNearestNeighborsCombined.CombinedCache
extends BatchDistanceNearestNeighbors.DistCache<org.apache.commons.lang3.tuple.ImmutablePair<javax.vecmath.Point3d,Double>>
TO DO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addValuesOfFace
(MeshDistances meshDistances) Caches measured distancesdouble
getDistance
(int faceIndex1, int faceIndex2, int vertIndex) Returns distance of two faces.Methods inherited from class cz.fidentis.analyst.engines.face.batch.distance.impl.BatchDistanceNearestNeighbors.DistCache
add, getCache, getNumFaces, getNunFaceVertices
-
Constructor Details
-
CombinedCache
protected CombinedCache()
-
-
Method Details
-
addValuesOfFace
Description copied from class:BatchDistanceNearestNeighbors.DistCache
Caches measured distances- Specified by:
addValuesOfFace
in classBatchDistanceNearestNeighbors.DistCache<org.apache.commons.lang3.tuple.ImmutablePair<javax.vecmath.Point3d,
Double>> - Parameters:
meshDistances
- Measured distances
-
getDistance
public double getDistance(int faceIndex1, int faceIndex2, int vertIndex) Description copied from class:BatchDistanceNearestNeighbors.DistCache
Returns distance of two faces.- Specified by:
getDistance
in classBatchDistanceNearestNeighbors.DistCache<org.apache.commons.lang3.tuple.ImmutablePair<javax.vecmath.Point3d,
Double>> - Parameters:
faceIndex1
- First face indexfaceIndex2
- Second face indexvertIndex
- Index of the vertex on the gauge face- Returns:
- distance
-