Model.pointmodify#

Model.pointmodify(point_entity, x, y, z)#

Specifies new coordinates for the point.

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

  • x (double) – The x-component of the new point coordinates.

  • y (double) – The y-component of the new point coordinates.

  • z (double) – The z-component of the new point coordinates.

Example#

Specify new coordinates for the newly created point with ID 2#
import hm
import hm.entities as ent

model = hm.Model()

model.createpoint(x=0.0, y=0.0, z=0.0, system=None)
model.createpoint(x=10.0, y=0.0, z=0.0, system=None)
model.window(function=0, xmin=0.0, ymin=0.0, xmax=0.0, ymax=0.0)

# Modifying coordinates
model.pointmodify(point_entity=ent.Point(model, 2), x=5.0, y=0.0, z=0.0)

# Creating points between the ones with ID 1 and 2
model.createpointsbetweenpoints(
    point_entity1=ent.Point(model, 1), point_entity2=ent.Point(model, 2), count=1
)