Model.surfacesplinefrompoints#

Model.surfacesplinefrompoints(collection, options)#

Creates a spline surface using selected nodes or points as boundary conditions.

Parameters:
  • collection (Collection) – The collection containing the entities to use as input. Valid entities are nodes and points.

  • options (int) –

    Specifies options for creating the surface.

    Bit values are used and the value is calculated as (Bit0 + 4*Bit1). Valid Bit options are:

    Bit0 Surface trim mode. Valid values are:

    0 - Trim by parametric rectangle.

    1 - Trim by points boundary.

    Bit1

    Mesh stitching. Used to control the connectivity of the mesh created on the new spline surface in simultaneous meshing modes. Valid values are:

    0 - New mesh is not connected.

    1 - If Model.surfacemode() is set to 1, existing mesh nodes are used if new spline edges are stitched to those lines.

    Show Bit value calculator
    Radio Button Table
    Option Name Value
    Surface trim mode (Bit0)
    Mesh stitching (Bit1)
    Calculated argument value: 0

Examples#

Build a spline from the displayed points and do not connect mesh#
import hm
import hm.entities as ent

model = hm.Model()

model.surfacemode(mode=1)

model.surfacesplinefrompoints(
    collection=hm.CollectionByDisplayed(model, ent.Point), options=0
)
Build a spline from the displayed points and do not connect mesh#
import hm
import hm.entities as ent

model = hm.Model()

model.surfacemode(mode=1)

model.surfacesplinefrompoints(
    collection=hm.CollectionByDisplayed(model, ent.Point), options=4
)