Class BatchDistanceNearestNeighbors.DistCache<T>
java.lang.Object
cz.fidentis.analyst.engines.face.batch.distance.impl.BatchDistanceNearestNeighbors.DistCache<T>
- Type Parameters:
T
- the type of cached value
- Direct Known Subclasses:
BatchDistanceNearestNeighborsCombined.CombinedCache
,BatchDistanceNearestNeighborsDirect.DirectionCache
,BatchDistanceNearestNeighborsRelative.RelativeDistCache
,BatchDistanceRayCasting.RayCastingDistCache
- Enclosing class:
BatchDistanceNearestNeighbors
Cache of distances from the average face to other faces.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
abstract void
addValuesOfFace
(MeshDistances meshDistances) Caches measured distancesgetCache()
abstract double
getDistance
(int faceIndex1, int faceIndex2, int vertIndex) Returns distance of two faces.int
Returns the number of cached facesint
getNunFaceVertices
(int faceIndex) Returns the number of cached vertices of the given faces
-
Constructor Details
-
DistCache
public DistCache()
-
-
Method Details
-
addValuesOfFace
Caches measured distances- Parameters:
meshDistances
- Measured distances
-
getDistance
public abstract double getDistance(int faceIndex1, int faceIndex2, int vertIndex) Returns distance of two faces.- Parameters:
faceIndex1
- First face indexfaceIndex2
- Second face indexvertIndex
- Index of the vertex on the gauge face- Returns:
- distance
-
getNumFaces
public int getNumFaces()Returns the number of cached faces- Returns:
- the number of cached faces
-
getNunFaceVertices
public int getNunFaceVertices(int faceIndex) Returns the number of cached vertices of the given faces- Returns:
- the number of cached vertices of the given faces
-
getCache
-
add
-