Model.surfacesplinefillholes#

Model.surfacesplinefillholes(collection)#

Creates spline surfaces on all loops of selected lines.

Both topological and free lines can be used for the loop for spline creation. If lines are not connected into a closed loop, it will create connecting lines. If the selected lines are topological lines connected to some other surfaces, the tangency of the lines created to close the gaps in the loop should match the tangency of the connected surfaces. The tangencies of the created splines match the tangencies of connected surfaces (if any). Created splines are placed into the same components that selected lines belong to.

Parameters:

collection (Collection) – The collection containing the input line entities.

Example#

Create spline surfaces for lines with IDs 1 - 10#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains the lines with IDs 1-10
filter_lines = hm.FilterByEnumeration(ent.Line, list(range(1, 11)))
lines_collection = hm.Collection(model, filter_lines)

model.surfacesplinefillholes(collection=lines_collection)