IPython notebook integration
This page is dedicated to the Google Summer of Code project regarding the interoperability between IPython and FreeCAD, mostly regarding visualisation.
FreeCAD is quite popular for its extensive Python API providing grounds for many advanced macros and extensions. The API, which exposes everything from the document structure, basic workbench specific types and even the whole GUI, offers large amounts of freedom for the user to create everything he wants. Python in itself has become increasingly popular in the scientific community over the last years, partially surpassing classical interpreted languages like Matlab in certain areas. Due to this increased interest in and usage of the language an ecosystem for scientific computation has evolved around Python, leading to advanced coding environments like IPython and its Jupyter notebook. As this scientific usage of the language fits very well into FreeCADs profile as a python driven CAx application it should be possible to tightly integrate it into the scientific workflow. This means less usage of a custom application GUI but good integration into multi-purpose computation environments like IPython.
FreeCAD's API in itself is solid and powerful enough to be used in IPython extensively, however, one main issue with CAx code is the visualisation. It is nearly impossible to develop 3D models without seeing them. It is therefore important to find a way to visualize FreeCAD's 3D scene in the IPython display system as supported by the IPython QTConsole and the Jupyter notebook.
- Get familiar with FreeCADs openinventor scenegraph and the basic working of the GUI module. Also learn the openinventor API and the scene graph structure it provides.
- It should export geometry nodes as well as material (color etc.), lightning and camera
- Advanced: Implement a replacement for all openinventor nodes
- It should support 3D navigation, standard views (top, bottom,...)
- Advanced: It should mimic the FreeCAD preselection, e.g. show edges, faces and vertices as they are in FreeCAD
- Advanced: It should show the correct geometry names as in FreeCAD when preselected
- Advanced: Implement multiple navigation modes
- Replace the current WebGL export with the new advanced component
- The possibility to easily show FreeCAD document objects in Jupyter without needing to fire up the FreeCAD GUI
- The possibility to comfortably navigate the 3D scene inside of Jupyter
- Better WebGL export
- Documentation of the FreeCAD IPython interoperability in the Wiki and an example Jupyter notebook.
If the 3D scene can be navigated other things, which FreeCAD can display, remain, for example the spreadsheet.
- Understand and use APIs from FreeCAD and external libraries like openinventor