hm_getsurfacenormalatcoordinate

Returns the closest point and the components of the normal vector at the point on the surface closest to the input coordinates.

Syntax

hm_getsurfacenormalatcoordinate surf_id x y z

Type

HyperMesh Tcl Query Command

Description

Returns the closest point and the components of the normal vector at the point on the line closest to the input coordinates.. The first 3 return values are the closest point coordinates, and the last 3 are the normal vector components.

Inputs

surf_id
The ID of the surface.
x, y, z
The (x,y,z) coordinates of the point.

Example

To get the components of the normal vector nearest the coordinates (100,50,25) for the surface with ID 341:

foreach {x y z n_x n_y n_z} [hm_getsurfacenormalatcoordinate 341 100 50 25] {}

Errors

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

Version History

12.0.110