hm_wadlinesgetgridpoints

Returns coordinate data defining WAD grid points.

Syntax

hm_wadlinesgetgridpoints wad_child_min wad_child_max wad_adult_min wad_adult_max side_tolerance ?method?

Type

HyperMesh Tcl Query

Description

Returns coordinate data defining WAD grid points. The data will be returned as a list of one string, two integers, and three doubles. The string defines whether the point is child, middle or adult. The two integers are the row and column indices of the grid point. The three doubles are the X, Y, and Z coordinates of the grid point. For example:
Child -6 3 1.45816988887E+003 -600 8.59794186814E+002 Middle -1 6 1.75816988887E+003 -100 9.73484336137E+002 Adult -5 9 2.05816988887E+003 -500 1.03367256770E+003

Inputs

wad_child_min
The WAD line where child impact points begin.
wad_child_max
The WAD line where child impact points end.
wad_adult_min
The WAD line where adult impact points begin.
wad_adult_max
The WAD line where adult impact points end.
side_tolerance
No impact points are found within this distance of the side reference lines.
method
The method to use for measuring the side_tolerance distance.
0 - Euro NCAP (default if not specified)
1 - Homologation
2 - ECER
3 - UN-R127 for corners, Euro NCAP elsewhere
version
Used for Euro NCAP protocol, 7.0 (default if not specified), 8.0 or 8.2.

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