hm_getdistancefromnearestline
Gets the distance of the given point from the nearest line with IDs specified as arguments.
Syntax
hm_getdistancefromnearestline point_xyz line_id_list
Type
HyperMesh Tcl Query
Description
Gets the distance of the given point from the nearest line with IDs specified as arguments.
Inputs
- point_xyz
- The list of x, y, z coordinates of the point.
- line_id_list
- List of line IDs.
Examples
The function returns a list consisting of two values. The first value is the distance to the closest line. The second value is ID of the closest line.
To get closest to the point with coordinates (10, 20, 30) point on the line with ID 13:
hm_getdistancefromnearestline [list 10 20 30] 13
To get closest line from the set with IDs 13 14 15:
hm_getdistancefromnearestline [list 10 20 30] [list 13 14 15]
To get closest to the point with ID 2 point on the line with ID 13:
hm_getdistancefromnearestline [hm_getvalue points id=2 dataname=coordinates] 13
Errors
None.