Model.findloops#

Model.findloops(collection, by_component)#

Finds the closed loops in a group of elements.

Parameters:
  • collection (Collection) – The collection containing the entities. Valid entities are components and elements.

  • by_component (int) –

    0 - Finds closed loops by considering the entities on the collection as a whole.

    1 - Finds closed loops, by component, for the entities on the collection.

Example#

Find the closed loops on all of the elements contained in the component fender#
import hm
import hm.entities as ent

model = hm.Model()

comps = hm.Collection(model, ent.Component, "name=fender")

model.findloops(collection=comps, by_component=0)