Model.fill_fe_holes_lines#

Model.fill_fe_holes_lines(collection, max_width, ByFeature=0, Remesh=0, DefineMaxWidth=0, AdjacentComp=0, CurvedFill=0, GuideNodePairs=hwIntList(), DetectNodeClusters=0, DoOverlapCleanup=0, CheckForDuplicate=0)#

Fills FE holes from a line selection defining the holes.

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

  • max_width (double) – Maximum allowed hole width.

  • ByFeature (int) –

    0 - Features should not be considered.

    1 - Features should be considered.

  • Remesh (int) –

    0 - Fill elements should not be remeshed.

    1 - Fill elements should be remeshed.

  • DefineMaxWidth (int) –

    0 - Ignore max_width for hole filling.

    1 - Consider max_width for hole filling.

  • AdjacentComp (int) –

    0 - Fill elements should be created in a new component.

    1 - Fill elements should be created in the adjacent component.

    2 - Fill elements should be created in the current component.

  • CurvedFill (int) –

    0 - Gaps are filled without taking into consideration the shape of adjacent elements.

    1 - Gaps are filled taking into consideration the shape of adjacent elements, ensuring a smooth fill.

  • GuideNodePairs (hwIntList) – Reserved for future development. Value must be 0.

  • DetectNodeClusters (int) – Reserved for future development. Value must be 0.

  • DoOverlapCleanup (int) – Reserved for future development. Value must be 0.

  • CheckForDuplicate (int) – Reserved for future development. Value must be 0.

Example#

Fill the holes defined by the closed lines with IDs 1-5, using a max width of 20.5, remeshing filled elements, and creating the elements in the adjacent components#
import hm
import hm.entities as ent

model = hm.Model()

model.fill_fe_holes_lines(
      collection=hm.Collection(model, ent.Line, list(range(1,6))),
      max_width=20.5,
      Remesh=1,
      DefineMaxWidth=1,
      AdjacentComp=1
)