hm_wadlinesgetinternalbumperline

Returns the averaged points for the internal bumper line as a series of x, y, and z values.

Syntax

hm_wadlinesgetinternalbumperline spacing max_depth max_height

Type

HyperMesh Tcl Query

Description

Returns the averaged points for the internal bumper line as a series of x, y, and z values. It will use the front entities set using hm_wadlinessetentities and the corner_angle set with hm_wadlinessetparameters to determine the "Corner of Bumper" for both sides of the vehicle. If hm_wadlinessetbumper has been used, the outermost ends of those entities will be determined. All points for the internal bumper reference line will fit laterally between either the "Corner of Bumper" or the outermost ends of the bumper entities, whichever is larger. This is the "Edge of Bumper Test Zone."

Inputs

spacing
The lateral distance, starting from the center line, at which the points will be placed.
max_depth
The maximum rearward distance a point can be from the first point of contact with the bumper entities and still be used to find the height of the bumper entities. If the bumper entities have not been set, the front entities are used instead.
max_height
The maximum height allowed for the averaged points as measured from the origin (set using hm_wadlinessetaxes).

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_wadlinesgetinternalbumperline 10.0 50.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

14.0