InteractionMixin
- class compas_ifc.interactions.InteractionMixin
Bases:
objectMixin that adds interaction-graph capabilities to a Model subclass.
Expects the host class to provide: -
self._file—IFCFile-self._elements— dict of guid → GenericElement -self._elements_by_global_id— dict of IFC GlobalId → GenericElement -self.graph—compas_model.models.InteractionGraph-self.add_interaction(a, b)— from compas_model.Model -self.elements()— iterator over all GenericElementMethods
Detect volumetric collisions (interferences) between building elements.
Detect geometric contacts between building elements and add them as connection edges.
Get all graph edges that have at least one relationship of a given category.
Get all graph edges belonging to a relationship group.
Visualize all collision pairs at once, each pair in its own colour.
Show the model with an interactive collision list in compas_viewer.
Trace elements reachable from
startthrough interaction edges.Inherited Methods