Contact Layer¤
compas_model.viewer.contactlayer
¤
Classes¤
ContactLayer
¤
Scene representation of contacts stored in a model interaction graph.
Each planar region receives its own scene object. This intentionally avoids merging contact meshes because a merged buffer cannot support independent picking or visibility.
Attributes¤
selected_keys
property
¤
selected_keys: tuple[ContactKey, ...]
Keys of contact regions selected in the viewport.
Methods:¤
keys_for_edge
¤
Return contact keys belonging to an interaction edge.
select
¤
Set selection on contact-region scene objects.
set_all_visible
¤
set_all_visible(visible: bool) -> None
Set visibility of the complete contact layer.
set_visibility
¤
Set visibility of individual contact regions.