Model.fill_fe_gaps_lines#
- Model.fill_fe_gaps_lines(collection1, collection2, max_width, ByFeature=0, Remesh=0, DefineMaxWidth=0, AdjacentComp=0, CurvedFill=0, GuideNodePairs=hwIntList(), DetectNodeClusters=0, DoOverlapCleanup=0)#
Fills gaps in FE from lines selected on both sides of the gap.
- Parameters:
collection1 (Collection) – The collection containing the element entities at the first boundary.
collection2 (Collection) – The collection containing the element entities at the second boundary.
max_width (double) – Maximum allowed gap width to be filled.
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 gap filling.
1 - Consider max_width for gap 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 fi.
GuideNodePairs (hwIntList) – Specifies an optional list of node IDs in the form “M1 M2 N1 N2 O1 O2 …” where (M1, M2), (N1, N2) and (O1, O2) are node pairs. These pairs are used to divide the gap to be filled into smaller loops. When provided, gaps are filled ensuring that the loops are split at the specified pairs. This aids in filling complex hole shapes by guiding the filling process correctly.
DetectNodeClusters (int) – Reserved for future development. Value must be 0.
DoOverlapCleanup (int) – Reserved for future development. Value must be 0.
Example#
Fill gaps less than 100 between lists 1 and 2, including remeshing#import hm import hm.entities as ent model = hm.Model() lines1 = hm.Collection(model, ent.Line, list(range(1,6))) lines2 =hm.Collection(model, ent.Line, list(range(6,11))) model.fill_fe_gaps_lines( collection1=lines1, collection2=lines2, max_width=100.0, Remesh=1, DefineMaxWidth=1 )