Class BatchDistanceNearestNeighborsDirect.DirectionCache
java.lang.Object
cz.fidentis.analyst.engines.face.batch.distance.impl.BatchDistanceNearestNeighbors.DistCache<javax.vecmath.Point3d>
cz.fidentis.analyst.engines.face.batch.distance.impl.BatchDistanceNearestNeighborsDirect.DirectionCache
- Enclosing class:
BatchDistanceNearestNeighborsDirect
protected static class BatchDistanceNearestNeighborsDirect.DirectionCache
extends BatchDistanceNearestNeighbors.DistCache<javax.vecmath.Point3d>
Cache of vectors to the nearest neighbors, from which the final distance is computed.
-
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
-
DirectionCache
protected DirectionCache()
-
-
Method Details
-
addValuesOfFace
Description copied from class:BatchDistanceNearestNeighbors.DistCache
Caches measured distances- Specified by:
addValuesOfFace
in classBatchDistanceNearestNeighbors.DistCache<javax.vecmath.Point3d>
- 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<javax.vecmath.Point3d>
- Parameters:
faceIndex1
- First face indexfaceIndex2
- Second face indexvertIndex
- Index of the vertex on the gauge face- Returns:
- distance
-