Model.surfacemarksplitwithnodes#

Model.surfacemarksplitwithnodes(collection, node_list)#

Splits a group of surfaces with a smooth line defined by the nodes.

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

  • node_list (EntityList) – The list of IDs of the nodes to be used to define the line.

Example#

Split the surface with ID 4 by a line created by the nodes with IDs 1 , 2 and 3#
import hm
import hm.entities as ent

model = hm.Model()

model.surfacemarksplitwithnodes(
    collection=hm.Collection(model, ent.Surface, [4]),
    node_list=[ent.Node(model, 1), ent.Node(model, 2), ent.Node(model, 3)],
)