Model.morphupdateendcondition#
- Model.morphupdateendcondition(n1, n2, n3, x, y, z, mode)#
Updates the end condition of one or two morph volume edges.
- Parameters:
n1 (Entity) – The entity node at end of first edge.
n2 (Entity) – The entity node between first edge and second edge.
n3 (Entity) – The entity node at end of second edge (if necessary).
x (double) – X component of vector for end direction
y (double) – Y component of vector for end direction
z (double) – Z component of vector for end direction
mode (int) –
0 - Free
1 - Set to vector
2 - Main-secondary tangency
3 - Secondary-main tangency
4 - Continuous tangency
Example#
Update the the end condition with the help of the nodes with IDs 21,22,23 and the vector [ 1.0,0.0,0.0 ]#import hm import hm.entities as ent model = hm.Model() model.morphupdateendcondition( n1=ent.Node(model, 21), n2=ent.Node(model, 22), n3=(model, 23), x=1.0, y=0.0, z=0.0, mode=1, )
Note
This function either frees the specified edge end, sets the direction of the edge end equal to the given vector, or enforces a tangency condition between two edges. The end of an edge which is affected by this function is marked by
n1.