Model.hm_wadlinessetfrontentitiesforcollision#

Model.hm_wadlinessetfrontentitiesforcollision(entities)#

Sets the front entities to be used to create the bonnet rear reference line.

BRRL spheres are rolled on the windscreen to collide with the front entities of the vehicle. Points of contact of these spheres with the front entities are used to construct the BRRL.

This API must be used after initializing the wadlines analysis using Model.hm_wadlinesinit().

Parameters:

entities (Collection) – The collection containing the entities being set for collision. Valid entities are components.

Returns:

Example#

Set the front entities for collision to components with IDs 102 and 103#
import hm
import hm.entities as ent

model = hm.Model()

model.hm_wadlinesinit()

comps = hm.Collection(model, ent.Component, [102, 103])

model.hm_wadlinessetfrontentitiesforcollision(entities=comps)

model.hm_wadlinesend()