Model.createpointsbetweenpositions#
- Model.createpointsbetweenpositions(x0, y0, z0, x1, y1, z1, count, end_points, system_id)#
Creates midpoints between two geometric positions in space.
- Parameters:
x0 (double) – The x-coordinate of the start position.
y0 (double) – The y-coordinate of the start position.
z0 (double) – The z-coordinate of the start position.
x1 (double) – The x-coordinate of the end position.
y1 (double) – The y-coordinate of the end position.
z1 (double) – The z-coordinate of the end position.
count (int) – The number of midpoints to create.
end_points (int) –
0 - No point at either end
1 - Create a point at the start position
2 - Create a point at the end position
3 - Create points at both ends
system_id (Entity) – The system entity that positions the end points in space.
Example#
Create 7 points between posistions ( 1.89 , 8.83 , 8.84 ) and ( 8.68 , 1.82 , 1.83 )#import hm import hm.entities as ent model = hm.Model() model.createpointsbetweenpositions( x0=1.89, y0=8.83, z0=8.84, x1=8.68, y1=1.82, z1=1.83, count=7, end_points=0, systemid=None, )