I am implementing a set of my own objects (i.e. Python classes) that contain different representations of the same geometry. For example a Wall, can have Brep, Lines, Points, …
Is there a way I can define a default visualization such that when I select a component that outputs my objects (say, walls) in grasshopper it displays them as surfaces? A work-around is currently to access the underlying geometry in a separate component (like wall.surface)
I can’t really get my head around that, but other solutions like the BHoM elements do something similar. Like in the image below, where the visualization is comprised of the wall surface as well as the openings in that wall. I just could not find the respective code that does it…
Thanks a lot in advance!