Model.lineextenddistance#
- Model.lineextenddistance(line, distance, derivative, direction)#
Extends the specified line.
- Parameters:
line (Entity) – The line entity to extend.
distance (double) – The distance to extend the line.
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 2 at distance of 10.0 , tangent to the line from the end of the line#import hm import hm.entities as ent model = hm.Model() model.lineextenddistance( line=ent.Line(model, 2), distance=10.0, derivative=1, direction=1 )