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

public class MeshDistanceNNGPU extends MeshDistanceVisitorImpl
Visitor calculates nearest neighbour on GPU. Uses a LeftBalancedKdTree.
See Also:
  • 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

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