Model.marknodenudge#
- Model.marknodenudge(collection, distance, vector)#
Moves nodes along a surface. The nodes must first be associated to a surface.
- Parameters:
collection (Collection) – The collection containing the node entities to be moved.
distance (double) – The distance to move the nodes (in the direction of the vector).
vector (hwTriple) – The direction to move the node (in 3D space). This vector is mapped to the surface before the nodes are moved.
Example#
Move the node with ID 110 a distance of 10.0 in the x direction ( along the surface it is associated to )#import hm import hm.entities as ent model = hm.Model() nodes = hm.Collection(model, ent.Node, [110]) vector = [1.0, 0.0, 0.0] model.marknodenudge(collection=nodes, distance=10.0, vector=vector)