Skip to content
A Python library for generating 3D models. There is a live user interface on http://pycad.xyz, and this repository contains the code needed to generate STL (3D printable) files. Special thanks to Morris Chen (https://github.com/blitzingeagle) for PyCAD's colour scheme.
Branch: master
Clone or download
Latest commit d07530e Nov 13, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
chess_example Edited readme Nov 14, 2017
generated_openscad Moved code to a public git repository Nov 14, 2017
README.md Fixed example code Nov 14, 2017
__init__.py Moved code to a public git repository Nov 14, 2017
cad_base.txt Moved code to a public git repository Nov 14, 2017
figure.py
openscad_path.txt Moved code to a public git repository Nov 14, 2017
scad_preface.txt Moved code to a public git repository Nov 14, 2017

README.md

Setup Instructions

  1. Install OpenSCAD (http://www.openscad.org/index.html)
  2. Download this repository and change the openscad.txt file to point at your openscad installation. This is typically /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD for macs. Alternatively, add the installation to your PATH then write "openscad" to openscad.txt.
  3. Start a new Python file and import the library by adding
import sys
sys.path.append(PATH_TO_FIGURE.PY)
from figure import Figure
fig = Figure()
# a bunch of
# fig.line((x1, y1, z1), (x2, y2, z2))
fig.generate_stl()
  1. This will generate a new file in /generated_openscad and launch the OpenSCAD GUI. To generate a 3D printable file, build the figure then run export > STL.
You can’t perform that action at this time.