mesh_dist

ABSTRACT

Computes the minimum distance between a test point and the selected meshes within the provided mesh-tree. NOTE: this is purely between the points that are a part of the mesh. This means that in a sphere, for example, there would actually be positive distance between a test point in the center and the sphere.

PARAMETERS
meshConsiders all meshes in the mesh-tree for distance computation.
rootSpecifies the container mesh-tree where meshes are selected for distance calculation.
tag_predicate(tag)Determines if a mesh with the provided tag contributes to the distance computation.
test_pointThe point (3-vector) for which the minimum distance from the selected meshes is calculated.
RETURN

The minimum distance between the test point and the selected meshes within the provided mesh-tree.

DECLARATION
func mesh_dist([mesh_tree] {[full] {mesh}, [tag_pred] {root, tag_predicate(tag)}}, test_point)