kryptokommunist wrote: ↑Tue Jul 07, 2020 8:18 pm
- continue resolving the issue as the response from the maintainer looks promising
blocked, after a very quick first response no more signs of life from the maintainer
But since I have gotten my other solution to the issue below to work this should be fine.
- extending my current manually built pythreejs example by attaching labels to it's surfaces and edges
not started yet.
- build a function that iterates over the scene graph that just extracts the edges and outputs them into an (py)three.js compatible format
done. With help from @ickby on explaining the scene graph to me on the mentor call I could finally get this working. The relevant Jupyter Notebook with code at the end of it can be found
here.
This currently still has some issues. First of all I noticed that the scene graph in my Code doesn't match the scene graph I see running the same Code inside FreeCAD and then inspecting
FreeCAD>Tools>Scene Inspector. The parts that didn't match were the contents inside
Flat Lines,
Shaded,
Wireframe nodes within the
SwitchNodes. Everything is there, just the ordering is not matching with everything. Aside from that there are some more details that I need to add, e.g. setting up the camera, lighting etc. based on the coin scene graph.
- freecad_3Dview_in_jupyter.gif (931.25 KiB) Viewed 3410 times
My goals for this week are (
kanban link):
- find out where in FreeCAD I can access the names of edges and surfaces
- extending my current pythreejs scene graph function to attach labels to it's surfaces and edges
- extract color, lines, camera, lighting correctly from the FreeCAD scene graph as there currently are still some issues