Model.hm_wadlinesgetwadpointtapeline#
- Model.hm_wadlinesgetwadpointtapeline(lateral_location, distance)#
Returns coordinate data defining a line made by the measuring tape running from the ground to the specified WAD point along the vehicle. 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 line runs from the ground to the specified WAD point.
- Parameters:
lateral_location (double) –
The lateral location for the tape line, using the centerline of the vehicle as the origin. The location given must be a multiple of the spacing parameter set with
Model.hm_wadlinessetparameters().For example, if the value of spacing is 100.0, the values of the lateral_location must be 0.0, 100.0, -100.0, 200.0, -200.0, 300.0, etc…
distance (double) – The distance from ground level to a WAD point, as measured along the vehicle.
- Returns:
hwReturnStatus- Status objectHmQueryResultList- Result list object containingHmQueryResultobjects with the following output data:pointCoordinates (numpy.ndarray)
Example#
Setup and extract WAD lines data#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_wadlinesgetwadline(distance=1700.0) _,resultlist1 = model.hm_wadlinesgetwadpointtapeline(lateral_location=-700.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=-600.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=-500.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=-400.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=-300.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=-200.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=-100.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=-0.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=100.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=200.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=300.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=400.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=500.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=600.0, distance=1700.0) model.hm_wadlinesgetwadpointtapeline(lateral_location=700.0, distance=1700.0) model.hm_wadlinesend() for result1 in resultlist1: print("pointCoordinates",result1.pointCoordinates)