Model.CE_ProjectionCheck#

Model.CE_ProjectionCheck(ce_incollection, ce_outcollection, length_flag, length, tolerance, sel_type, future1, future2, future3)#

Checks quality of projections with connectors.

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

  • ce_outcollection (Collection) – The collection containing the failed connector entities.

  • length_flag (int) –

    0 - Use T1+T2/2 as checking length.

    1 - Use length as checking length.

  • length (double) – The value of checking length, only be used when length_flag=1.

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

  • sel_type (int) –

    0 - Check too long.

    1 - Check too short.

    2 - Check both too long and too short.

  • future1 (int) – Reserved for future development.

  • future2 (int) – Reserved for future development.

  • future3 (int) – Reserved for future development.

Example#

Connectors marked will be checked if they are too long with respect to length 10.0, with tolerance 0.2, and failed connectors will be placed on ce_outcollection#
import hm
import hm.entities as ent

model = hm.Model()

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

model.CE_ProjectionCheck(
    ce_incollection=ce_in,
    ce_outcollection=ce_out,
    length_flag=1,
    length=10.0
    tolerance=0.2,
    sel_type=0,
    future1=0.0,
    future2=0.0,
    future3=0.0
)