hm_getuvcoordinates

Returns the parametric uv coordinates at a node location on the referenced surface.

Syntax

hm_getuvcoordinates surf_id node_id ?scaled?

Type

HyperMesh Tcl Query Command

Description

Returns the parametric uv coordinates at a node location on the referenced surface. The u and v values are returned as a list containing two values. The first value in the list is the value of u, and the second value is the value of v.

This command is only valid for single surfaces or surfaces generated by trimming one original surface and suppressing edges. It is not valid for the generic case of surfaces composed from different parametric patches by suppressing edges only (for example, two separate surfaces stitched together, then edges suppressed).

Inputs

surf_id
The ID of the surface.
node_id
The ID of the node. The node must be associated to the surface.
scaled
Optional argument used when the referenced surface is a trimmed surface. If the value is set to 0 (default), the uv coordinates returned will be in reference to the parametric space of original untrimmed surface. If the scale value is set to 1, the uv coordinates returned will be in reference to the parametric space of the trimmed surface.

Example

To get the uv coordinates of node 5 of surface 1:

hm_getuvcoordinates 1 5

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

9.0