Model.nodemodify#

Model.nodemodify(nodeentity, x, y, z)#

Modifies the location of a node in space.

Parameters:
  • nodeentity (Entity) – The object describing the node entity to be modified.

  • x (double) – The new x coordinate of the node.

  • y (double) – The new y coordinate of the node.

  • z (double) – The new z coordinate of the node.

Example#

Modify the location of node with ID 1 to be x = 10.0 , y = 20.0 , z = 30.0#
import hm
import hm.entities as ent

model = hm.Model()

model.nodemodify(nodeentity=ent.Node(model, 1), x=100.0, y=20.0, z=30.0)