Model.createnodesbetweenpositions#
- Model.createnodesbetweenpositions(x0, y0, z0, x1, y1, z1, count, option, systemid)#
Creates nodes 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 nodes to be created.
option (int) –
Determines if a node is created at the start and the end position.
0 - No node is created at either end.
1 - Create a node at the start position.
2 - Create a node at the end position.
3 - Create a node at both ends.
systemid (Entity) – The system entity discribing of the local system in which the positions are defined.
Example#
Create 7 nodes between positions ( 1.89 , 8.83 , 8.84 ) and ( 8.68 , 1.82 , 1.83 ) defined in the global system without create nodes at the start and end position#import hm import hm.entities as ent model = hm.Model() model.createnodesbetweenpositions( x0=1.89, y0=8.83, z0=8.84, x1=8.68, y1=1.82, z1=1.82, count=7, option=0, systemid=None )