Class MeshDistanceVisitorImpl

java.lang.Object
cz.fidentis.analyst.engines.distance.impl.MeshDistanceVisitorImpl
All Implemented Interfaces:
MeshVisitor, MeshDistanceVisitor, Serializable
Direct Known Subclasses:
MeshDistanceNN, MeshDistanceRC, MeshDistanceRCGPU

public abstract class MeshDistanceVisitorImpl extends Object implements MeshDistanceVisitor
An abstract class for distance visitors that search for the distances of inspected meshes (their vertices) to the primary mesh, which is provided to the visitor's constructor.
See Also:
  • Constructor Details Link icon

    • MeshDistanceVisitorImpl Link icon

      protected MeshDistanceVisitorImpl(boolean relativeDistance, boolean parallel)
      Constructor.
      Parameters:
      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.
      parallel - If true, then the algorithm runs concurrently utilizing all CPU cores
      Throws:
      IllegalArgumentException - if some parameter is wrong
  • Method Details Link icon

    • getDistancesOfVisitedFacets Link icon

      public MeshDistances getDistancesOfVisitedFacets()
      Description copied from interface: MeshDistanceVisitor
      Returns the distance of inspected mesh facets to the source mesh facets.

      If non or multiple closest points were found or if the point was auto-cropped, then the distance is set to Double.POSITIVE_INFINITY and the nearest neighbor is set to null.

      Specified by:
      getDistancesOfVisitedFacets in interface MeshDistanceVisitor
      Returns:
      the distance of inspected mesh facets to the source mesh facets.
    • relativeDistance Link icon

      public boolean relativeDistance()
      Description copied from interface: MeshDistanceVisitor
      Returns true if the distance was computed as relative (with possibly negative values).
      Specified by:
      relativeDistance in interface MeshDistanceVisitor
      Returns:
      true if the distance is computed as relative, false otherwise.
    • inParallel Link icon

      public boolean inParallel()
      Description copied from interface: MeshDistanceVisitor
      Returns true if the distance computation is parallel.
      Specified by:
      inParallel in interface MeshDistanceVisitor
      Returns:
      true if the distance computation is parallel.
    • dispose Link icon

      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