Model.combineelements#

Model.combineelements(collection, tolerance, angle)#

Combines the selected elements into one.

Parameters:
  • collection (Collection) – The collection containing the entities to be combined.

  • tolerance (double) – The maximum tolerance allowed before a node within the group of selected elements is considered to be not on the plane formed by any three nodes attached to the group of selected elements.

  • angle (double) – The maximum angle between three nodes which is considered to be a flat side.

Example#

Combine elements with IDs 10, 13, and 15 with an off plane tolerance of 0.1 and a flat angle of 150.0 degrees#
import hm
import hm.entities as ent

model = hm.Model()

model.combineelements(
    collection=hm.Collection(model, ent.Element, [10, 13, 15]),
    tolerance=0.1,
    angle=150.0,
)

Note

This function is obsolete and is provided only for backward compatibility