Interface PointToSurfaceDistanceServices


public interface PointToSurfaceDistanceServices
Stateless services for point-to-mesh distance measurement. It is a wrapper to the stateful implementation of PointToSurfaceDistanceVisitor.
  • Method Details

    • measureDistance

      static double measureDistance(Collection<KdTree> kdTrees, PointToSurfaceDistanceConfig config)
      Returns the distance from the 3D point and the meshes stored in th k-D trees.
      Parameters:
      kdTrees - Meshes to be checked
      config - Configuration of the service
      Returns:
      the distance from a 3D point
    • measureDistance

      static double measureDistance(KdTree kdTree, PointToSurfaceDistanceConfig config)
      Returns the distance from the 3D point and the mesh stored in th k-D tree.
      Parameters:
      kdTree - Mesh to be checked
      config - Configuration of the service
      Returns:
      the distance from a 3D
    • findNearestPoints

      static Map<MeshFacet,List<MeshPoint>> findNearestPoints(Collection<KdTree> kdTrees, PointToSurfaceDistanceConfig config)
      Returns the closest point from the meshes stored in the k-D trees and the 3D point.
      Parameters:
      kdTrees - Meshes to be checked
      config - Configuration of the service
      Returns:
      the closest points from visited meshes to the 3D point
    • findNearestPoints

      static Map<MeshFacet,List<MeshPoint>> findNearestPoints(KdTree kdTree, PointToSurfaceDistanceConfig config)
      Returns the closest point from the mesh stored in the k-D tree and the 3D point.
      Parameters:
      kdTree - Mesh to be checked
      config - Configuration of the service
      Returns:
      the closest points from visited meshes to the 3D point
    • measure

      static org.apache.commons.lang3.tuple.Pair<Double,Map<MeshFacet,List<MeshPoint>>> measure(Collection<KdTree> kdTrees, PointToSurfaceDistanceConfig config)
      Returns the distance and the closest points
      Parameters:
      kdTrees - Meshes to be checked
      config - Configuration of the service
      Returns:
      the distance and closest points
    • measure

      static org.apache.commons.lang3.tuple.Pair<Double,Map<MeshFacet,List<MeshPoint>>> measure(KdTree kdTree, PointToSurfaceDistanceConfig config)
      Returns the distance and the closest points
      Parameters:
      kdTree - Mesh to be checked
      config - Configuration of the service
      Returns:
      the distance and closest points