Model.hm_wadlinesgetdebugtracelines#
- Model.hm_wadlinesgetdebugtracelines(line_type, offset_distance=0, protocol_method=0)#
Creates the debug lines used to create different types of reference lines, and returns the coordinates.
- Parameters:
line_type (int) –
The type of reference line to create the debug lines for:
0 - Bonnet leading edge reference line (BLERL)
1 - Bonnet rear reference line (BRRL)
2 - Left side reference line (LSRL)
3 - Right side reference line (RSRL)
4 - Upper bumper reference line (UBRL)
5 - Lower bumper reference line (LBRL)
8 - Internal bumper reference line (IBRL)
offset_distance (double) – If specified, then it will create debug trace lines for respective offset reference lines. For example, with offset distance of 82.5mm offset lines will be constructed for the left side reference offset line with 82.5mm distance from LSRL.
protocol_method (int) –
0 - Euro-NCAP
1 - Homologation
2 - GTR/ECER
3 - UN-R127
4 - CNCAP
- Returns:
hwReturnStatus- Status objectHmQueryResultList- Result list object containingHmQueryResultobjects with the following output data:pointCoordinates (numpy.ndarray)
Examples#
Get the debug trace lines for the left side reference line#import hm import hm.entities as ent model = hm.Model() model.hm_wadlinesinit() _,resultlist = model.hm_wadlinesgetdebugtracelines(line_type=2) model.hm_wadlinesend() for result in resultlist: print("pointCoordinates",result.pointCoordinates)
Get the debug trace lines for the offset bonnet rear reference line with a distance of 82.5#import hm import hm.entities as ent model = hm.Model() model.hm_wadlinesinit() _,resultlist = model.hm_wadlinesgetdebugtracelines(line_type=2, ,offset_distance=82.5) model.hm_wadlinesend() for result in resultlist: print("pointCoordinates",result.pointCoordinates)
Get the debug trace lines for the offset bonnet rear reference line with a distance of 82.5 for the GTR protocol method#import hm import hm.entities as ent model = hm.Model() model.hm_wadlinesinit() _,resultlist = model.hm_wadlinesgetdebugtracelines(line_type=2, ,offset_distance=82.5, protocol_method=2) model.hm_wadlinesend() for result in resultlist: print("pointCoordinates",result.pointCoordinates)