We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8093c commit b843518Copy full SHA for b843518
jupytercad_freecad/freecad/jcad_converter.py
@@ -0,0 +1,10 @@
1
+import freecad as fc
2
+
3
+def convert_jcad_to_fcstd(jcad_dict: dict) -> 'fc.Document':
4
+ """
5
+ Stub converter: create an empty FreeCAD document.
6
+ Later, fill this in by iterating jcad_dict["objects"] and applying ops.
7
8
+ doc = fc.app.newDocument("FromJCAD")
9
+ # TODO: recreate primitives & boolean ops here
10
+ return doc
src/plugins.ts
@@ -40,6 +40,7 @@ const FACTORY = 'Jupytercad Freecad Factory';
40
41
class JupyterCadFCstdDoc extends JupyterCadDoc {
42
toJcadEndpoint = 'jupytercad_freecad/export-jcad';
43
+ toFcstdEndpoint = 'jupytercad_freecad/export-fcstd';
44
}
45
46
const activate = async (
0 commit comments