Model.linecreatestraight#
- Model.linecreatestraight(x1, y1, z1, x2, y2, z2)#
Creates a straight segment line between the given input end point coordinates. The distance between the input points must be not smaller than the global value of the geometry cleanup tolerance set by
hm.setoption(cleanup_tolerance=...).- Parameters:
x1 (double) – The x component of segment start point.
y1 (double) – The y component of segment start point.
z1 (double) – The z component of segment start point.
x2 (double) – The x component of segment end point.
y2 (double) – The y component of segment end point.
z2 (double) – The z component of segment end point.
Example#
Create straight segment with endpoints ( 1.0 , 2.0 , 3.0 ) and ( 4.0 , 5.0 , 6.0 )#import hm import hm.entities as ent model = hm.Model() model.linecreatestraight(x1=1.0, y1=2.0, z1=3.0, x2=4.0, y2=5.0, z2=6.0)