File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 11from compas_model .scene .modelobject import ModelObject as BaseModelObject
2- from compas_viewer .scene import Group
32from compas_viewer .scene import ViewerSceneObject
43
54
65class ModelObject (ViewerSceneObject , BaseModelObject ):
7- def add_elements (self , ** kwargs ) -> None :
8- elements_group = self .add (Group (name = "Elements" , context = self .context ))
9- contacts_group = self .add (Group (name = "Contacts" , context = self .context ))
10-
11- if self .show_elements :
12- for element in self .model .tree .rootelements :
13- element_kwargs = kwargs .copy ()
14- element_kwargs ["item" ] = element
15- elements_group .add (** element_kwargs )
16-
17- if self .show_contacts :
18- for contact in self .model .contacts ():
19- contact_kwargs = kwargs .copy ()
20- contact_kwargs ["item" ] = contact
21- contacts_group .add (** contact_kwargs )
6+ pass
You can’t perform that action at this time.
0 commit comments