Best way to render hollow objects in the DisplayConduit?

DisplayConduit is rendering hollowed objects differently depending on how I make them. If I make them with CreateShell(), they render like I want. If I make them with CreateBooleanDifference() the hollow part cannot be seen through the object. However, CreateShell doesn’t provide good results in more complicated cases, so I need to use CreateBooleanDifference.

Is there any way I can get the DisplayConduit to display hollowed objects made with CreateBooleanDifference like I want? (Note: This isn’t a super-duper important thing, but I would just really prefer for the user to be able to see the “hollow” through the object without having to look at the top or bottom of the object to confirm the hollow’s existence and size.)

(Feel free to point out ANY stupid things I might be doing in my code, btw.)

hollow_objects_render_issue.py (5.4 KB)

Bump. I still haven’t figured this out. Any ideas?

@stevebaer Any idea why this happens?

1 Like

@eirannejad , Grok helped me figure out that converting breps to meshes (just for the display pipeline) is a good solution. It technically doesn’t answer my question, but it gives me the results I’m looking for. Actually, I think it’s even better than what I was trying for.

hollow_meshes.py (6.7 KB)