Model.surfacesplineonnodesloop2#

Model.surfacesplineonnodesloop2(entitylist, options)#

Creates a spline surface using a node list as boundary conditions.

Parameters:
  • entitylist (EntityList) – A list containing the node entity objects. The nodes should be selected in an order consistent with the intended trimming boundary of the constructed surface. No attempt is made to correct the input by rearranging the order of the nodes.

  • options (int) –

    If set to 0, input nodes that were not already associated to any geometry get associated to the new surface. In addition, in simultaneous meshing modes set by Model.surfacemode(), input nodes are taken into account to create connections between the new surface mesh and an already existing mesh.

    If set to 1, input nodes are not associated to the new surface and are not taken into account in simultaneous meshing modes.

Example#

Build a spline from the nodes with IDs 1 , 2 , 3 and 4#
import hm
import hm.entities as ent

model = hm.Model()

model.surfacemode(mode=1)

model.surfacesplineonnodesloop2(
    entitylist=[
        ent.Node(model, 1),
        ent.Node(model, 2),
        ent.Node(model, 13),
        ent.Node(model, 4),
    ],
    options=0,
)