Model.CE_PreviewCombine#

Model.CE_PreviewCombine(outputcollection, tolerance, ignore_links=0, overlaps=100)#

Finds connectors that need to be combined and place them on the output collection.

Parameters:
  • outputcollection (Collection) – The collection containing the connector entities to be populated.

  • tolerance (double) – Search radius to find combinations.

  • ignore_links (int) – Reserved for future development.

  • overlaps (int) – Reserved for future development.

Example#

Connectors found inside a tolerance of 0.5 will be populated on the output collection if they meet all the requirements to be combined#
import hm
import hm.entities as ent

model = hm.Model()

ce = hm.Collection(model, ent.Connector, populate=False)

model.CE_PreviewCombine(
    outputcollection=ce, tolerance=0.5
)