hm_wadlinesgetleggridline

Returns a series of three doubles denoting the points for the line calculated by the previous call to hm_wadlinesgetgridpointsleg.

Syntax

hm_wadlinesgetleggridline

Type

HyperMesh Tcl Query

Description

Returns a series of three doubles denoting the points for the line calculated by the previous call to hm_wadlinesgetgridpointsleg. This API must be called after a call to hm_wadlinesgetgridpointsleg. The line that is returned is based on the arguments passed in to hm_wadlinesgetgridpointsleg:

height=0, version=7.0: Upper Bumper Reference Line

height=0, version=8.0: Internal Bumper Reference Line

height=1, version=7.0: Front Reference Line

height=1, version=8.0: WAD Line

These lines may have extra points added to them due to the requirements of the grid point marking standards compared to lines extracted using the hm_wadlinesgetreferenceline API. The extra points will ensure that any type of line (linear or smooth) will pass through all of the grid points. Thus, if you are drawing the markup lines for the grid points, use this API instead of the reference line API to get the lines.

Note than any line stored after one call to the hm_wadlinesgetgridpointsleg API is overwritten by subsequent calls to the hm_wadlinesgetgridpointsleg API.

Example

To setup and extract WAD lines data:

hm_wadlinesinit
hm_wadlinessetparameters 45.0 50.0 100.0 82.5 50.0 20.0 25.0 60.0
hm_wadlinessetaxes 0.0 0.0 182.0 -1.0 0.0 0.0 0.0 -1.0 0.0
hm_createmark components 1 "by id" "100000199 100000200 290000007 410000016 411000016 420000004 420000005 420000006 420000007 420000008 420000009 420000010 420000011 420000012 420000013 420000014 420000015 420000016 420000019 420000020"
hm_createmark components 2 "by id" "100000003 100000010 100000022 100000113"
hm_wadlinessetentities comps 1 comps 2
hm_createmark components 1 "by id" "407000001 407000002"
hm_wadlinessetbumper comps 1
hm_wadlinesgetgridpointsleg 0 100.0 7.0
hm_wadlinesgetleggridline
hm_wadlinesgetgridpointsleg 1 100.0 7.0
hm_wadlinesgetleggridline
hm_wadlinesgetgridpointsleg 0 100.0 8.0
hm_wadlinesgetleggridline
hm_wadlinesgetgridpointsleg 1 100.0 8.0
hm_wadlinesgetleggridline
hm_wadlinesend

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

14.0