Class MeshDistanceBruteforceGPU
java.lang.Object
cz.fidentis.analyst.engines.distance.impl.MeshDistanceVisitorImpl
cz.fidentis.analyst.engines.distance.impl.MeshDistanceBruteforceGPU
- All Implemented Interfaces:
MeshVisitor
,MeshDistanceVisitor
,Serializable
Bruteforce distance search between two meshes on GPU.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMeshDistanceBruteforceGPU
(Collection<MeshFacet> facets, boolean relativeDistance, boolean crop, boolean vertexToTriangles) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose all disposable resources this visitor was using.void
visitMeshFacet
(MeshFacet facet) 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
-
MeshDistanceBruteforceGPU
public MeshDistanceBruteforceGPU(Collection<MeshFacet> facets, boolean relativeDistance, boolean crop, boolean vertexToTriangles) Constructor.- Parameters:
facets
- Facets to which distance is calculated. Combined into a set of vertexes/triangles.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.vertexToTriangles
- If the distance should be calculated between vertexes and point on triangles or just between vertexes.
-
-
Method Details
-
visitMeshFacet
Description copied from interface:MeshVisitor
The inspection method to be implemented by specific visitors.- Parameters:
facet
- 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
-