yunomi-git / CadGenerator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CadGenerator

Scad to Onshape

The following converts an scad file to a Brep format in onshape

Quickstart

  1. Create and load a new conda environment. Python v3.8+ works
  2. pip install -r requirements.txt
  3. 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

Notes

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

About

License:MIT License


Languages

Language:JavaScript 49.7%Language:Python 33.1%Language:OpenSCAD 12.6%Language:HTML 4.6%