Model.lineextendtoline#
- Model.lineextendtoline(line1, line2, capture_radius, derivative, direction)#
Extends
line1toline2.- Parameters:
line1 (Entity) – The line entity to extend.
line2 (Entity) – The line entity to which
line1is extended.capture_radius (double) – If the point at the end of the extension is within the
capture_radiusofline2, then force the end point to be online2.derivative (int) –
1 - Extend the tangent to the line
2 - Extend following the curvature of the line
direction (int) –
-1 - Extend the beginning of the line
1 - Extend the end of the line
Example#
Extend the line with ID 1 to the line with ID 2 with a capture radius of 1.0 . The extend line should be tangent toline1and extended from the end of the line .#import hm import hm.entities as ent model = hm.Model() model.lineextendtoline( line1=ent.Line(model, 1), line2=ent.Line(model, 2), capture_radius=1.0, derivative=1, direction=1, )