Model.bm_markpreservedcompsboundary#

Model.bm_markpreservedcompsboundary(collection, common_bound, free_edges)#

Flags the boundaries of components to be preserved during batch meshing and autocleanup.

Parameters:
  • collection (Collection) –

    The collection containing the input component entities.

    0 - Flag all components for preservation (not just the ones inside of a collection).

  • common_bound (int) –

    0 - Boundaries between components within the selection are flagged.

    1 - Only the boundary of the entire selection is flagged (comps are treated as a single set).

  • free_edges (int) –

    0 - Free edges are not marked for preservation.

    1 - Free edges are marked for preservation.

Example#

Mark the boundaries of components with IDs 100 and 101, flagging only the boundary of the entire selection#
import hm
import hm.entities as ent

model = hm.Model()

model.bm_markpreservedcompsboundary(
    collection=hm.Collection(model, ent.Component, [100, 101]),
    common_bound=1,
    free_edges=0
)