fornjot icon indicating copy to clipboard operation
fornjot copied to clipboard

Display model structure

Open hannobraun opened this issue 2 years ago • 4 comments

Right now, only the end result is shown. The primitives and operations applied to them, that make up the model, aren't. This can make it hard to debug your model.

There should be some kind of tree structure visible on the screen, that shows all those primitives and operations which make up the model. Each element in that tree should be selectable. When selected, only that element should be shown.

Blocked on #116.

hannobraun avatar Nov 23 '21 21:11 hannobraun

Relevant thoughts: https://github.com/hannobraun/Fornjot/issues/220#issuecomment-1059144575

hannobraun avatar Mar 04 '22 13:03 hannobraun

No longer blocked. As of #763, we have support for egui now.

hannobraun avatar Jul 11 '22 13:07 hannobraun

There should be some kind of tree structure visible on the screen, that shows all those primitives and operations which make up the model. Each element in that tree should be selectable. When selected, only that element should be shown.

This sounds really similar to the system used by SolidWorks when doing mechanical design.

The idea is you have some sort of "feature tree" down the left hand side where one feature might be a 2D sketch, then the next feature is an extrude of that sketch, and the third feature might be adding fillets to the extruded shape.

As well as being able to right-click and "suppress" a feature and any features that depend on it (e.g. suppressing the extrude will also hide the fillet, but it won't touch a completely separate sketch further down the feature tree), there's this horizontal bar you can drag up and down the feature tree to hide any element after it.

This tutorial might help show what I'm talking about:

Youtube: Get the Most Out of SOLIDWORKS FeatureManager Design Tree

Michael-F-Bryan avatar Jul 11 '22 17:07 Michael-F-Bryan

Yes, that's like what I had in mind. Thanks for the reference, @Michael-F-Bryan!

hannobraun avatar Jul 12 '22 09:07 hannobraun

Closing this issue as out of scope. See A New Direction for context.

hannobraun avatar May 15 '23 09:05 hannobraun