Interface MeshDistanceServices


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

    • measure

      static MeshDistances measure(Collection<MeshFacet> facets, MeshDistanceConfig config)
      Returns distances between the source mesh (stored in the configuration object) and meshes provided as input parameter. The measurement is one-directional. It means that only the distance from the source mesh to target mesh(es) is estimated. If the distance strategy is asymmetric, e.g., the distance based on nearest neighbours or ray-casting, then the measurement should be called also in the opposite direction and the results should be combined to achieve better accuracy.
      Parameters:
      facets - Meshes towards which the distance is measured
      config - Configuration of the service. It includes the source mesh.
      Returns:
      Distance measurement
    • measure

      static MeshDistances measure(MeshFacet facet, MeshDistanceConfig config)
      Returns distances between the source mesh (stored in the configuration object) and the mesh provided as input parameter. The measurement is one-directional. It means that only the distance from the source mesh to target mesh(es) is estimated. If the distance strategy is asymmetric, e.g., the distance based on nearest neighbours or ray-casting, then the measurement should be called also in the opposite direction and the results should be combined to achieve better accuracy.
      Parameters:
      facet - Mesh towards which the distance is measured
      config - Configuration of the service. It includes the source mesh.
      Returns:
      Distance measurement
    • measure

      static MeshDistances measure(MeshModel meshModel, MeshDistanceConfig config)
      Returns distances between the source mesh (stored in the configuration object) and the mesh model provided as input parameter. The measurement is one-directional. It means that only the distance from the source mesh to target mesh(es) is estimated. If the distance strategy is asymmetric, e.g., the distance based on nearest neighbours or ray-casting, then the measurement should be called also in the opposite direction and the results should be combined to achieve better accuracy.
      Parameters:
      meshModel - Mesh model towards which the distance is measured
      config - Configuration of the service. It includes the source mesh.
      Returns:
      Distance measurement