Model.linecombine#
- Model.linecombine(line_entity1, line_entity2, smooth)#
Combines two free lines into one.
- Parameters:
line_entity1 (Entity) – The object describing the first free line entity.
line_entity2 (Entity) – The object describing the second free line entity.
smooth (int) – A flag that determines whether the lines should be combined with a straight line segment (0) or a smooth line segment (1) if the end points of the lines are not coincident.
Example#
Combine lines with IDs 10 and 20 with a smooth segment#import hm import hm.entities as ent model = hm.Model() model.linecombine( line_entity1=ent.Line(model, 10), line_entity2=ent.Line(model, 20), smooth=1 )