Model.wadlines_windscreenperiphery#

Model.wadlines_windscreenperiphery(windscreen_comps_collection, line_list=hwIntList(), offset=165.0, step_size=10.0)#

Creates the hard part zone for the pedestrian tool by duplicating and trimming vehicle outer components with the test zone boundaries.

Parameters:
  • windscreen_comps_collection (Collection) – The collection containing the entities.

  • line_list (hwIntList) – The list of IDs of four frit lines defining the boundary of the windscreen. This is an optional argument, and if not provided, the edges of the windscreen component are used. The number of line IDs provided should be 4.

  • offset (double) – Total offset inwards from the windscreen edges or frit lines for the windscreen periphery zone. Default offset = 165.0.

  • step_size (double) – The windscreen zone is created by incrementally offsetting the windscreen edge inwards by step size until the total offset provided is reached. Default step_size = 10.0.

Example#

Create a hard part zone use lines 1 - 4 , offset of 165.0 and step size of 5.0#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains the displayed components
collection_disp_components = hm.CollectionByDisplayed(model, ent.Component)

model.wadlines_windscreenperiphery(
    windscreen_comps_collection=collection_disp_components,
    line_list=[1, 2, 3, 4],
    offset=165.0,
    step_size=5.0,
)