hm_getcoordinatesofpointsonline

Gets the coordinates of the points for which normalized parameters are specified, along with the ID of the line on which they are located, as arguments to the command.

Syntax

hm_getcoordinatesofpointsonline lineID param_list

Type

HyperMesh Tcl Query

Description

Gets the coordinates of the points for which normalized parameters are specified, along with the ID of the line on which they are located, as arguments to the command.

Inputs

lineID
The ID of the line on which the points are located.
param list
List of line parameters normalized to the range 0…1.0.

Example

The function returns a list with a number of components equal to number of specified parameters in the parameter list. Each component itself is a list consisting of three elements representing x, y and z coordinates of calculated point.

To calculate coordinates of endpoints for the line with ID 13:

set two_points [hm_getcoordinatesofpointsonline 13 [list 0.0 1.0]]
      {2.7E+03 -7.3E+02 6.1E+02} {2.6E+03 -7.3E+02 5.8E+02}
set start_point [lindex $two_points 0]
      2.7E+03 -7.3E+02 6.1E+02
set end_point [lindex $ two_points 1]
      2.6E+03 -7.3E+02 5.8E+02
set x1 [lindex $start_point 0]
      2.7E+03
set y1 [lindex $start_point 1]
      -7.3E+02
set z1 [lindex $start_point 2]
      6.1E+02
set x2 [lindex $end_point 0]
      2.6E+03
set y2 [lindex $end_point 1]
      -7.3E+02
set z2 [lindex $end_point 2]
      5.8E+02

Errors

None.