hm_wadlinesgetreferenceline

Returns coordinate data defining WAD reference lines.

Syntax

hm_wadlinesgetreferenceline line_location ?offset? ?method?

Type

HyperMesh Tcl Query

Description

Returns coordinate data defining WAD reference lines.

Inputs

line_location
The location of the line to query (0=front, 1=rear, 2=left, 3=right, 4=upper bumper, 5=lower bumper, 6=left corner, 7=right corner). The data will be returned as a list of doubles. Every three doubles are the X, Y, and Z coordinates of a point along the line. The lines all run from front to back and from left to right.
offset (optional)
Argument that defines an offset to apply when querying the rear, left and right reference lines. A positive value offsets the line toward the center of the bonnet by the specified value. Negative values are supported, but should not be necessary.
method
The method to use for measuring the offset distance.
0 - Euro NCAP (default if not specified)
1 - Homologation
2 - ECER

Example

To setup and extract WAD lines data:

hm_wadlinesinit
hm_wadlinessetparameters 45.0 50.0 100.0 100.0 50.0 20.0 25.0 60.0
hm_wadlinessetaxes 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0
*createmark comps 1 "bonnet" "bumper" "fenderL" "fenderR"
*createmark comps 2 "windshield" "a-pillars"
hm_wadlinessetentities comps 1 comps 2
*createmark elems 1 "by collector" wipers
hm_wadlinessetwipers elems 1 0 1
hm_wadlinesgetreferenceline 0
hm_wadlinesgetreferenceline 1
hm_wadlinesgetreferenceline 2
hm_wadlinesgetreferenceline 3
hm_wadlinesgetreferenceline 4
hm_wadlinesgetreferenceline 5
hm_wadlinesgetreferenceline 6
hm_wadlinesgetreferenceline 7
hm_wadlinesgetwadline 1000.0
hm_wadlinesgetwadline 1500.0
hm_wadlinesgetwadline 1700.0
hm_wadlinesgetwadline 2100.0
hm_wadlinesgetgridpoints 1000.0 1500.0 1700.0 2100.0 50.0
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

12.0.110