7BIndustries / Semblage

Semblage is an open source CAD GUI backed by a programmatic CAD API named CadQuery.
https://semblage.7bindustries.com/en/latest/
GNU Lesser General Public License v2.1
48 stars 3 forks source link

Workplane Visualization is Not Always Visible When it Should Be #57

Closed jmwright closed 3 years ago

jmwright commented 3 years ago

The untessellated check in the ContextHandler class should probably check to see if there is a Workplane().tag(), workplane().tag() or just workplane() call at the end of the code. If there is, a workplane visualization should be created. It would also be interesting to explore the possibility of removing the selector and workplane from the end of the chain, then render what was there before, and then add the workplane visualization on top of that. That would save a lot of confusion with objects and workplanes disappearing after operations are added.

jmwright commented 3 years ago

I'm not completely happy with the implementation, but I think it will work for now. Semblage will eventually need a much more sophisticated way of understanding the script-render context, but I'm hoping that the work on selector synthesis will help provide some ideas on that front.

Ref: 0596c20e9b354aca7dc57d88d6619337f376b67e