Model.surfacesplinefillholes2#
- Model.surfacesplinefillholes2(collection, options)#
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.
options (int) – If set to 1, the edges of the new surface are suppressed. Otherwise the edges are not suppressed.
Example#
Create spline surfaces for lines with IDs 1 - 10 , and suppress the edges between the new and exist surface#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.surfacesplinefillholes2(collection=lines_collection, options=1)