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

public class MeshDistanceBruteforceGPU extends MeshDistanceVisitorImpl
Bruteforce distance search between two meshes on GPU.
See Also:
  • 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

      public void visitMeshFacet(MeshFacet facet)
      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 interface MeshVisitor
      Overrides:
      dispose in class MeshDistanceVisitorImpl