Model.rigidscombine#

Model.rigidscombine(collection, combine_common_inode)#

Combines rigids and rigidlinks.

Parameters:
  • collection (Collection) – The collection containing the element entities to combine.

  • combine_common_inode (int) –

    0 - The rigids and rigidlinks will be combined if they share any nodes (dependent or independent).

    1 - The rigids and rigidlinks that share a common independent node will be combined.

Example#

Combine elements with IDs 100 and 101 into one rigidlink#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains the elements to combine
element_collection = hm.Collection(model, ent.Element, [100, 101])

model.rigidscombine(collection=element_collection, combine_common_inode=1)