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.

Notifications You must be signed in to change notification settings

Verkhovskaya/PyCAD

Repository files navigation

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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published