hm_curve_getpointcords

Gets the x and y coordinates of one or all the points on a curve.

Syntax

hm_curve_getpointcords curve_id ? point_number

Type

HyperMesh Tcl Query

Description

Gets the x and y coordinates of one or all the points on a curve.

Inputs

curve_id
The ID of the queried curve.
point_number
The point number. If a point number is specified, the x and y coordinates of the specified point are returned. If a point number is not specified, the x and y coordinates of all the points are returned.

List of multiple double lists. The x, y coordinates of each point are placed into a separate list.

Example

To obtain coordinates of all the points on a curve, assuming there are three points on the curve:

hm_getpointcords $curve_id
returns:{ 0.0 10.0E+2 } {2.0 20.0E+2} {3.0 20.0E+2}

To obtain coordinates of the second point on a curve:

hm_getpointcords $curve_id 2
returns{2.0 20.0E+2} 

Errors

None.