No description
Find a file
2016-11-17 21:46:23 -06:00
cgal #1647 remove workarounds for older versions of boost 2016-06-27 22:52:41 -04:00
color-schemes axes-color for Tomorrow Night 2015-05-12 15:53:26 -05:00
contrib Provide correct feature in scad-mode.el 2016-02-05 19:37:43 +01:00
doc docs to create msys ctest redistributable binary. assume c:\python27 on win 2016-10-19 04:33:42 -07:00
examples Updated examples/rotate_extrude, added rotate_extrude-angle test, updated expected dumptests 2015-11-15 13:51:18 -06:00
fonts Keep 05-osx-fonts.conf in fonts dir to make the fonts work in development mode 2015-03-03 13:25:53 -05:00
fonts-osx Keep 05-osx-fonts.conf in fonts dir to make the fonts work in development mode 2015-03-03 13:25:53 -05:00
icons Add keywords to the desktop file 2015-08-11 11:47:34 +02:00
images make Orthogonal View button show Orthogonal projected cube, not perspective. 2015-10-24 12:48:53 -05:00
libraries Updated MCAD 2014-03-07 00:15:53 -05:00
locale Merge pull request #1789 from senttech/l10n-pl 2016-09-16 00:51:04 -04:00
patches Bumped OpenCSG to 1.4.2 2016-10-07 15:35:46 +02:00
releases sync with 2015.03-branch 2016-02-17 16:34:07 -05:00
scripts rm old stuff. improve 'dry run' pkgbuild. allow simple gdebi style .deb 2016-11-17 21:46:23 -06:00
src fix definitions of version stuff 2016-10-29 19:35:08 -05:00
test-code Removed old code made redundant by tests 2010-10-31 12:54:23 +01:00
testdata a few steps towards portable ctest ( and some dependency tweaks ) 2016-10-24 23:23:55 -05:00
tests Merge branch 'msys2' of github.com:openscad/openscad into msys2 2016-10-26 21:03:05 -05:00
winconsole separate builddir + deploydir, move towards qmake make install for packages 2016-10-30 23:11:23 -05:00
xcode AST refactoring: New ASTNode supertype, refactored Expression, Module and Function class hierarchies 2016-06-13 19:35:42 -04:00
.gitignore Update ignores 2016-07-20 16:29:21 -04:00
.gitmodules Make MCAD submodule relative to openscad toplevel. 2012-02-18 18:37:53 +01:00
.travis.yml Fix #1775: Remove fglrx drivers which were recently introduced to travis ci 2016-08-21 13:43:41 -04:00
appcast-snapshots.xml.in Use correct links to release notes 2015-03-09 03:42:58 -04:00
appcast.xml.in Release notes doesn't currently change for patch level releases 2015-03-14 16:17:20 -04:00
boost.pri allow shared library cross-build under MXE 2015-11-01 21:26:48 -05:00
c++11.pri fix definitions of version stuff 2016-10-29 19:35:08 -05:00
cgal.pri allow shared library cross-build under MXE 2015-11-01 21:26:48 -05:00
COPYING Fixed FSF address 2012-10-07 19:52:43 +02:00
csgopnode.h #1527 Green refactoring: Renamed some classes, cleaned up some member visibility and redundant copying 2015-12-25 21:45:15 -05:00
dsa_pub.pem Added support for signing binaries 2013-02-11 21:44:48 -05:00
gettext.pri remove debug msg 2016-10-08 02:07:34 +02:00
Info.plist Added experimental SVG import 2016-07-19 14:44:35 -04:00
opencsg.pri QGLView requires glew regardless of whether opencsg is used. 2015-10-23 23:02:02 +01:00
opengl.pri simplify version reporting, default to use QOpenGLWidget 2016-10-29 14:48:18 -07:00
openscad.appdata.xml.in Create multilingual appdata file using itstool 2015-06-21 15:59:56 +02:00
openscad.pro rm old stuff. improve 'dry run' pkgbuild. allow simple gdebi style .deb 2016-11-17 21:46:23 -06:00
openscad.qrc Remove flattr icon and use styled link instead. 2015-06-28 19:25:12 +02:00
OpenSCAD.sdef Experimental Apple Event hack; you can now do 'tell application "OpenSCAD" to reload' 2010-02-02 01:01:38 +00:00
openscad_win32.rc detect windows 10 w manifest. cleanup stuff related to old versions (XP etc) 2016-10-05 00:35:45 -05:00
qscintilla2.prf detect qscintilla2 better on qt5 openscad_deps builds. fix bug in releasecommon 2015-11-12 03:52:47 +00:00
README.md fix msys compatability, date, use qopenglwidget 2016-10-28 23:52:37 -07:00
RELEASE_NOTES sync with 2015.03-2 2015-11-16 00:31:04 -05:00
scintilla.pri simplify version stuff. tweak msys 2016-10-29 13:30:43 -07:00
setenv_mac.sh doc 2016-01-27 02:50:33 -05:00
sparkle.pri Move software update menu handling to AutoUpdater. This should fix #714 2014-11-10 15:01:34 -05:00
valgrind.supp Killed some memory leaks 2011-11-27 05:20:18 +01:00
virtualfb.log Added OS X build and trusty build to travis config 2016-07-19 15:32:27 -04:00

Travis CI Coverity Status

Visit our IRC channel

What is OpenSCAD?

Flattr this git repo

OpenSCAD is a software for creating solid 3D CAD objects. It is free software and available for Linux/UNIX, MS Windows and Mac OS X.

Unlike most free software for creating 3D models (such as the famous application Blender) it does not focus on the artistic aspects of 3D modeling but instead on the CAD aspects. Thus it might be the application you are looking for when you are planning to create 3D models of machine parts but pretty sure is not what you are looking for when you are more interested in creating computer-animated movies.

OpenSCAD is not an interactive modeler. Instead it is something like a 3D-compiler that reads in a script file that describes the object and renders the 3D model from this script file (see examples below). This gives you (the designer) full control over the modeling process and enables you to easily change any step in the modeling process or make designs that are defined by configurable parameters.

OpenSCAD provides two main modeling techniques: First there is constructive solid geometry (aka CSG) and second there is extrusion of 2D outlines. As data exchange format format for this 2D outlines Autocad DXF files are used. In addition to 2D paths for extrusion it is also possible to read design parameters from DXF files. Besides DXF files OpenSCAD can read and create 3D models in the STL and OFF file formats.

Getting started

You can download the latest binaries of OpenSCAD at http://www.openscad.org/downloads. Install binaries as you would any other software.

When you open OpenSCAD, you'll see three frames within the window. The left frame is where you'll write code to model 3D objects. The right frame is where you'll see the 3D rendering of your model.

Let's make a tree! Type the following code into the left frame:

cylinder(h = 30, r = 8);

Then render the 3D model by hitting F5. Now you can see a cylinder for the trunk in our tree. Now let's add the bushy/leafy part of the tree represented by a sphere. To do so, we will union a cylinder and a sphere.

union() {
  cylinder(h = 30, r = 8);
  sphere(20);
}

But, it's not quite right! The bushy/leafy are around the base of the tree. We need to move the sphere up the z-axis.

union() {
  cylinder(h = 30, r = 8);
  translate([0, 0, 40]) sphere(20);
}

And that's it! You made your first 3D model! There are other primitive shapes that you can combine with other set operations (union, intersection, difference) and transformations (rotate, scale, translate) to make complex models! Check out all the other language features in the OpenSCAD Manual.

Documentation

Have a look at the OpenSCAD Homepage (http://openscad.org/) for documentation.

Building OpenSCAD

To build OpenSCAD from source, follow the instructions for the platform applicable to you below.

Prerequisites

To build OpenSCAD, you need some libraries and tools. The version numbers in brackets specify the versions which have been used for development. Other versions may or may not work as well.

There are helper scripts that may be able to assist you in downloading and/or building these dependencies on your machine. Please follow the instructions for the platform you're compiling on below.

Note that many of these package in turn have their own dependencies not listed here. These will typically be installed automatically by the package manager on your system when you install the packages listed above.

Getting the source code

Install git (http://git-scm.com/) onto your system. The package may be called 'git-core' or 'scmgit' on some systems. Then run a clone:

git clone git://github.com/openscad/openscad.git

This will download the latest sources into a directory named 'openscad'.

Now cd into the openscad directory and pull the MCAD library (http://reprap.org/wiki/MCAD):

cd openscad
git submodule update --init

Building for Mac OS X

Prerequisites:

  • Xcode
  • cmake
  • pkg-config

Install Dependencies:

After building dependencies, follow the instructions in the Compilation section.

  1. From source

Run the script that sets up the environment variables:

source setenv_mac.sh

Then run the script to compile all the dependencies:

./scripts/macosx-build-dependencies.sh
  1. Homebrew (assumes Homebrew is already installed)

     ./scripts/macosx-build-homebrew.sh
    
  2. MacPorts (assumes MacPorts is already installed)

    For the adventurous, it might be possible to build OpenSCAD using MacPorts. The main challenge is that MacPorts have partially broken libraries, but that tends to change from time to time.

    NB! MacPorts currently doesn't support Qt5 very well, so using Qt4 is the only working option at the moment. However, MacPorts' Qt4 has a broken moc command, causing OpenSCAD compilation to break. This may be fixed in MacPorts by the time you read this.

     sudo port install opencsg qscintilla boost cgal pkgconfig eigen3 harfbuzz fontconfig
    

On Windows

OpenSCAD can be built on Windows using the MSYS2 system. First, download and install MSYS2 from

 http://msys2.github.io

Please make sure to carefully follow the instructions to fully update your MSYS2 installation. This may take several hours and GB of space. Then continue

Building on Linux, BSD, or MSYS2

The basic formula is the same for all of these platforms. First, setup environment variables.

source ./scripts/setenv.sh

Then get dependencies

sudo ./scripts/get-dependencies.sh

Build the Makefile with qmake, then make the main openscad binary

qmake
make

To build an installable package for your system, run

./scripts/make_package.sh

The resulting package will be under the bin/ directory. It supports Debian gdebi style .deb, Windows .exe/.zip, and Mac .dmg

Linux without root

Use the linuxbrew setenv option. It installs dependencies into $HOME/.linuxbrew using the Linuxbrew / Homebrew packaging system.

source ./scripts/setenv.sh homebrew
./scripts/get-dependencies.sh
qmake && make

Cross build from linux to Windows with MXE.cc

This setenv option will setup a cross compiler, so that you can build Windows binaries on a Linux build machine. These instructions will also work using "Bash on Ubuntu on Windows" running under the Windows Linux Subsystem included with Windows 10.

First install MXE requirements from http://mxe.cc/#requirements. Then run

source ./scripts/setenv.sh mingw64
./scripts/get-dependencies.sh
qmake && make

Use mingw32 if you wish a 32 bit build.

Test suite

To run the self-tests, first build the main openscad program above, then run

cd tests cmake . make ctest

Problems building

If you had problems compiling from source, please raise a new issue in the issue tracker on the github page.

On some systems, depending on which version(s) of Qt you have installed, you may need to specify which version you want to use, e.g. by running 'qmake4', 'qmake-qt4', 'qmake -qt=qt5', or something alike.

See doc/testing.txt for more information on test builds.

This site and it's subpages can also be helpful: http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Building_OpenSCAD_from_Sources

Thank you for using OpenSCAD.