Class MeshDistanceNNGPU
java.lang.Object
cz.fidentis.analyst.engines.distance.impl.MeshDistanceVisitorImpl
cz.fidentis.analyst.engines.distance.impl.MeshDistanceNNGPU
- All Implemented Interfaces:
MeshVisitor
,MeshDistanceVisitor
,Serializable
Visitor calculates nearest neighbour on GPU.
Uses a LeftBalancedKdTree.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMeshDistanceNNGPU
(LeftBalancedKdTree kdTree, boolean pointToTriangle, boolean relativeDistance, boolean crop) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose all disposable resources this visitor was using.void
visitMeshFacet
(MeshFacet comparedFacet) The inspection method to be implemented by specific visitors.Methods inherited from class cz.fidentis.analyst.engines.distance.impl.MeshDistanceVisitorImpl
getDistancesOfVisitedFacets, inParallel, relativeDistance
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.data.mesh.MeshVisitor
isThreadSafe
-
Constructor Details
-
MeshDistanceNNGPU
public MeshDistanceNNGPU(LeftBalancedKdTree kdTree, boolean pointToTriangle, boolean relativeDistance, boolean crop) Constructor.- Parameters:
kdTree
- The Left-balanced Kd-tree to which distances from the visited facets should be computed.relativeDistance
- If true, then the visitor calculates the relative distances with respect to the normal vectors of source facets (normal vectors have to present), i.e., we can get negative distances.- Throws:
IllegalArgumentException
- if some parameter is wrong.
-
-
Method Details
-
visitMeshFacet
Description copied from interface:MeshVisitor
The inspection method to be implemented by specific visitors.- Parameters:
comparedFacet
- Mesh facet to be visited.
-
dispose
public void dispose()Description copied from interface:MeshVisitor
Dispose all disposable resources this visitor was using. Distances can still be retrieved after calling this method. Subclasses should override this method if they need to dispose something.- Specified by:
dispose
in interfaceMeshVisitor
- Overrides:
dispose
in classMeshDistanceVisitorImpl
-