hm_findclosestpointonsurface

For a given point on a surface, returns the closest other point on that same surface.

Syntax

hm_findclosestpointonsurface x y z surf_id

Type

HyperMesh Tcl Query Command

Description

For a given point on a surface, returns the closest other point on that same surface:

xs ys zs dist

where xs, ys and zs are the coordinates of the point on the surface closest to input point, and dist is the distance between the original and projected points.

Inputs

x y z
The coordinates of the known point.
surf_id
ID of the surface.

Example

To find the point closest to a point with coordinates (2676, -737, 605) and located on surface 7:

hm_findclosestpointonsurface 2676 -737 605 7
2.6777E+003 -7.3989E+002 6.0481E+002 3.3889E+000

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}