Model.delaunay_2d_3d#

Model.delaunay_2d_3d(type, collection, reserved)#

Performs 2D/3D triangulation of selected nodes.

Parameters:
  • type (int) –

    The type of triangulation to perform. Valid options are:

    2 - 2D triangulation

    3 - 3D triangulation

  • collection (Collection) – The collection containing the node entities for triangulation process.

  • reserved (hwString) – Reserved for future use. Must be set as “”.

Example#

2D triangulating the displayed nodes#
import hm
import hm.entities as ent

model = hm.Model()

inp_col = hm.CollectionByDisplayed(model, ent.Node)

model.delaunay_2d_3d(type=2, collection=inp_col, reserved="")