Model.CE_InputSigPoints#

Model.CE_InputSigPoints(tolerance, entity_collection, connector_collection)#

Imprints nodes or points as significant points on connectors.

Parameters:
  • tolerance (double) – The tolerance value defining the maximum distance between the nodes/points and the selected connectors.

  • entity_collection (Collection) – The collection containing the node or point entities to be imprinted.

  • connector_collection (Collection) – The collection containing the connector entities on which to add the significant points.

Example#

Imprint points with IDs 1-10 as significant points on connector with ID 1 using a tolerance 100.0#
import hm
import hm.entities as ent

model = hm.Model()

model.CE_InputSigPoints(
    tolerance=100.0,
    entity_collection=hm.Collection(model, ent.Point, list(range(1, 11))),
    connector_collection=hm.Collection(model, ent.Connector, [1])
)