Model.curveaddpoint#

Model.curveaddpoint(curve_id, index, xvalue, yvalue)#

Adds a new point in the curve.

Parameters:
  • curve_id (unsigned int) – The ID of the curve.

  • index (int) –

    The point number (point numbering starts with 1) after which the new point needs to be added.

    0 - If point needs to be added at the beginning.

  • xvalue (double) – The x coordinate of the point.

  • yvalue (double) – The y coordinate of the point.

Examples#

Add a new point with x and y values to a curve with ID curve_id have N number of points at the beginning#
import hm
import hm.entities as ent

model = hm.Model()

model.curveaddpoint(curve_id=1, index=0, xvalue=0.5, yvalue=0.5)
Add a new point with x and y values to a curve with ID curve_id have N number of points after the second point#
import hm
import hm.entities as ent

model = hm.Model()

model.curveaddpoint(curve_id=1, index=2, xvalue=0.5, yvalue=0.5)