hm_wadlinesgetsectionmax
Returns the most outward intercept of a cross section of the model as measured in a given direction.
Syntax
hm_wadlinesgetsectionmax origin_x origin_y origin_z plane_x plane_y plane_z dir_x dir_y dir_z
Type
HyperMesh Tcl Query
Description
Returns the most outward intercept of a cross section of the model as measured in a given direction. A plane, located at the given origin and with the given normal, is cut through the model and points are generated where all elements and surface facet edges are bisected by the plane. The dot product of each point and the given direction is used to determine which point is the maximum point lying in the plane.
This is intended to assist in the positioning of impact devices.
Inputs
- origin_x, origin_y, origin_z
- Define the origin of the plane used to cut the cross section.
- plane_x, plane_y, plane_z
- Define the normal vector of the plane used to cut the cross section.
- dir_x, dir_y, dir_z
- Define the vector used to evaluate the each point on the cross section.
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_wadlinesgetsectionmax 0 0 0 1 0 0 0 1 0
hm_wadlinesend
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0