Interface PointToSurfaceDistanceServices
public interface PointToSurfaceDistanceServices
Stateless services for point-to-mesh distance measurement.
It is a wrapper to the stateful implementation of
PointToSurfaceDistanceVisitor
.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionfindNearestPoints
(KdTree kdTree, PointToSurfaceDistanceConfig config) Returns the closest point from the mesh stored in the k-D tree and the 3D point.findNearestPoints
(Collection<KdTree> kdTrees, PointToSurfaceDistanceConfig config) Returns the closest point from the meshes stored in the k-D trees and the 3D point.measure
(KdTree kdTree, PointToSurfaceDistanceConfig config) Returns the distance and the closest pointsmeasure
(Collection<KdTree> kdTrees, PointToSurfaceDistanceConfig config) Returns the distance and the closest pointsstatic double
measureDistance
(KdTree kdTree, PointToSurfaceDistanceConfig config) Returns the distance from the 3D point and the mesh stored in th k-D tree.static double
measureDistance
(Collection<KdTree> kdTrees, PointToSurfaceDistanceConfig config) Returns the distance from the 3D point and the meshes stored in th k-D trees.
-
Method Details
-
measureDistance
Returns the distance from the 3D point and the meshes stored in th k-D trees.- Parameters:
kdTrees
- Meshes to be checkedconfig
- Configuration of the service- Returns:
- the distance from a 3D point
-
measureDistance
Returns the distance from the 3D point and the mesh stored in th k-D tree.- Parameters:
kdTree
- Mesh to be checkedconfig
- 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 checkedconfig
- 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 checkedconfig
- 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, measureList<MeshPoint>>> (Collection<KdTree> kdTrees, PointToSurfaceDistanceConfig config) Returns the distance and the closest points- Parameters:
kdTrees
- Meshes to be checkedconfig
- Configuration of the service- Returns:
- the distance and closest points
-
measure
static org.apache.commons.lang3.tuple.Pair<Double,Map<MeshFacet, measureList<MeshPoint>>> (KdTree kdTree, PointToSurfaceDistanceConfig config) Returns the distance and the closest points- Parameters:
kdTree
- Mesh to be checkedconfig
- Configuration of the service- Returns:
- the distance and closest points
-