Model.hm_wadlinessetbumper#
- Model.hm_wadlinessetbumper(entities)#
Sets the entities for the internal bumper components used for the internal bumper reference line and upper/lower leg grid point generation. Unlike the
Model.hm_wadlinessetentities_bycollection()orModel.hm_wadlinessetentities_bymode()andModel.hm_wadlinessetwipers().APIs, using wadlinessetbumper will not reset any stored entities or generated reference lines. This allows you to set the bumper entities at any time during WADLines analysis and be able to extract any data which has already been calculated. This will allow you to reuse these marks if needed.
- Parameters:
entities (Collection) – The collection containing the entities.
- Returns:
hwReturnStatus- Status object
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, 182.0], forwardvec=[-1.0, 0.0, 0.0], leftvec=[0.0, -1.0, 0.0] ) comps1 = hm.Collection( model, ent.Component, ids=[100000199, 100000200, 290000007, 410000016, 411000016, 420000004, 420000005, 420000006, 420000007, 420000008, 420000009, 420000010, 420000011, 420000012, 420000013, 420000014, 420000015, 420000016,420000019, 420000020 ] ) comps2 = hm.Collection(model, ent.Component, ids=[100000003, 100000010, 100000022, 100000113]) model.hm_wadlinessetentities_bycollection(frontEntities=comps1, rearEntities=comps2) components = hm.Collection(model, ent.Component, ids=[407000001, 407000002]) model.hm_wadlinessetbumper(entities=components) model.hm_wadlinesgetgridpointsleg(height=0, spacing=100.0, version=7.0 ) model.hm_wadlinesgetgridpointsleg(height=1, spacing=100.0, version=7.0 ) model.hm_wadlinesgetgridpointsleg(height=0, spacing=100.0, version=8.0 ) model.hm_wadlinesgetgridpointsleg(height=1, spacing=100.0, version=8.0 ) model.hm_wadlinesend()