Model.linecombinemarkall#
- Model.linecombinemarkall(collection, smooth, keep_original_lines)#
Joins a selection into a single line. The decision of which of the endpoints of the given lines to join depends only on the end points’ proximity: the lines with closest end points are joined together first.
- Parameters:
collection (Collection) – The collection containing the line entities to combine.
smooth (int) –
0 - Join with straight segments
1 - Join with smooth curves
keep_original_lines (int) –
0 - Do not keep
1 - Keep
Example#
Join the lines with IDs 10,20,30 into a single line , join them smoothly and delete the input lines#import hm import hm.entities as ent model = hm.Model() model.linecombinemarkall( collection=hm.Collection(model, ent.Line, [10, 20, 30]), smooth=1, keep_original_lines=0, )