Model.plotaxisnodes#

Model.plotaxisnodes(collection, axis)#

Plots a curve based on the values of marked nodes ordered along an axis.

Parameters:
  • collection (Collection) – The collection containing the input marked node entities.

  • axis (int) –

    The axis index

    0 - X-axis

    1 - Y-axis

    2 - Z-axis

Example#

Plot a curve based on the values of the nodes with IDs 167 , 171 , 175 along the X axis .#
import hm
import hm.entities as ent

model = hm.Model()

model.plotaxisnodes(collection=hm.Collection(model, ent.Node, [167, 171, 175]), axis=0)

Note

In order to work, there must be an existing contour and at least one node on the mark. Values on the curve are ordered according to their distance along the selected axis.