Model.midsurface_collapse_lines#

Model.midsurface_collapse_lines(collection)#

Sets the selection of lines to be collapsed during mid-surface extraction when performing a rerun operation.

Parameters:

collection (Collection) – The collection containing the line entities to collapse.

Example#

Set the lines with IDs 5 - 7 to collapse during the mid - surface extraction when perform a rerun operation#
import hm
import hm.entities as ent

model = hm.Model()

line_collection = hm.Collection(model, ent.Line, list(range(5, 8)))

model.midsurface_collapse_lines(collection=line_collection)