The following converts an scad file to a Brep format in onshape
- Create and load a new conda environment. Python v3.8+ works
- pip install -r requirements.txt
- For a quick demo, cd into CadGenerator/ and run
python -m PartGenerator.scad_conversion_main --mode example --example 148
The available examples are 011, 096, 107, 114, 128, 162
The output is located by default at this part studio
You can send custom scad files by running
python -m PartGenerator.scad_conversion_main --mode custom --example PartGenerator/scad/your_scad.scad
This code primarily demonstrates the pipeline. It can only convert scad build from simple operations like primitives, booleans, and transforms. It was meant to interface with the output of the InverseCSG paper