Model.hm_wadlinesgetchildtestzone#
- Model.hm_wadlinesgetchildtestzone()#
Returns the coordinates of the child test zone boundary.
This must be run after
Model.hm_wadlinesinit()and setting all necessary options withModel.hm_wadlinessetparameters().- Returns:
hwReturnStatus- Status objectHmQueryResultList- Result list object containingHmQueryResultobjects with the following output data:pointCoordinates (numpy.ndarray)
Example#
Setup and extract the child test zone#import hm import hm.entities as ent model = hm.Model() model.hm_wadlinesinit() model.hm_wadlinessetparameters( side_angle=45.0, front_angle=50.0, spacing=100.0, rear_reference_radius=100.0, reference_resolution=50.0, upper_bumper_angle=20.0, lower_bumper_angle=25.0, corner_angle=60.0, ) model.hm_wadlinessetaxes( origin=[0.0, 0.0, 0.0], forwardvec=[1.0, 0.0, 0.0], leftvec=[0.0, 1.0, 0.0] ) comps1 = hm.Collection( model, ent.Component, "Name=bonnet OR Name=bumper OR Name=fenderL OR Name=fenderR" ) comps2 = hm.Collection(model, ent.Component, "Name=windshield OR Name=a-pillars") model.hm_wadlinessetentities_bycollection(frontEntities=comps1, rearEntities=comps2) model.hm_wadlinesgetgridpoints( wad_child_min=1000.0, wad_child_max=1500.0, wad_adult_min=1700.0, wad_adult_max=2100.0, side_tolerance=50.0, ) _,resultlist = model.hm_wadlinesgetchildtestzone() model.hm_wadlinesend() for result in resultlist: print("pointCoordinates",result.pointCoordinates)