You are browsing as a guest. Sign up (or log in) to start making projects!

7h 13m 26s logged

Working extrude!

It works! I expanded a lot on the idea I had of Primitives and chunked the entire code-generation architecture into “Tools”, “Expressions”, “Primitives”, and “Bindings”. These all work with py-ast to generate an AST for Python and the AST get analyzed for dependencies (eg. the model its operating on, the face its extruding) and the deps are looked up in a “symbol table” which Pyodide then injects into the global namespace.

All that to say, I can write features and have them operate on the model without rerunning the whole script and without duplicating a bunch of code.

Here is an example of me selecting a face on the auto-generated key cap and extruding it 10mm. Since we can’t sketch yet, I need to auto-generate a model to be able to get faces in the scene.

0
26

Comments 0

No comments yet. Be the first!