hm_getsurfacesurfaceangle
Finds the angle, measured in degrees, between two surfaces.
Syntax
hm_getsurfacesurfaceangle surf1_id surf2_id x_coord y_coord z_coord
Type
HyperMesh Tcl Query
Description
This command finds the closest points, P1 and P2, on surfaces surf1_id and surf2_id, respectively, to the point, Q, given by the coordinates (x_coord, y_coord, z_coord). Next, it finds the vectors V1 and V2 which are normal to the given surfaces at points P1 and P2. The angle between V1 and V2, measured in degrees, is returned as the result. Note that the point Q does not have to be on either surface to find this angle.
Example
To find the angle between surface 413 and line 156 at point (4.7, 6.88, 9.4):
hm_getsurfacesurfaceangle 413 156 4.7 6.88 9.4
Errors
Incorrect usage results in a Tcl error. To
detect errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}