Skip to content

Interaction Form¤

compas_model.viewer.interactionform ¤

Classes¤

InteractionSelection dataclass ¤

InteractionSelection(
    edge: tuple[int, int],
    elements: tuple[Element, Element],
    contacts: tuple[Contact, ...],
    modifiers: tuple[object, ...] = (),
)

Selection of an interaction pair or some of its payload objects.

InteractionTreeForm ¤

InteractionTreeForm(
    controller: ModelViewer,
    selection_changed: Callable[[InteractionSelection | None], None] | None = None,
)

Tree projection of model interaction edges and their payloads.

Methods:¤
update ¤
update(refresh: bool = False) -> None

Synchronize contact selection and visibility with the scene.