hm_morph_getdomainangle

Returns the angle between two specified edge domains. Optional argument allows the user to input a normal vector to be used to measure the angle.

Syntax

hm_morph_getdomainangle domainId1 domainId2 ?x y z?

Type

HyperMesh Tcl Query

Description

Returns the angle between two specified edge domains. Optional argument allows the user to input a normal vector to be used to measure the angle.

Inputs

domainId1
The ID of one edge domain.
domainId2
The ID of a different edge domain.
x y z(optional)
Normal vector which will be used to calculate the angle between the domains. Default vector is normal to the end points of the two domains.

Examples

To find the angle between domains with ID 2 and 3:

hm_morph_getdomainangle 2 3

To find the angle between two domains with ID 2 and 3 and measured normal to a vector that runs 1.0 in the x direction, 0.5 in the y direction, and 0.0 in the z direction:

hm_morph_getdomainangle 2 3 1.0 0.5 0.0

Only the angle from one end to the other end, using the connecting node as the vertex, is measured. Curvature is ignored.

Errors

None.