OpenSCAD

From Wikipedia, the free encyclopedia
OpenSCAD
Developer(s)Marius Kintel, Claire Wolf[1]
Initial release19 February 2010; 14 years ago (2010-02-19)
Stable release
2021.01[2] Edit this on Wikidata / 31 January 2021; 3 years ago (31 January 2021)
Repository
Written inC++ and Qt, CGAL, OpenCSG, and OpenGL[3]
Operating systemLinux, macOS, Windows, FreeBSD, NetBSD, OpenBSD
PlatformIA-32, x64, arm64
Size15–27 MB (varies by operating system)[4]
Available in12 languages
List of languages
Czech, English, French, German, Polish, Russian, Spanish, Magyar, Armenian, Turkish, Ukrainian, Chinese
TypeCAD
LicenseGPL-2.0-or-later
Websitewww.openscad.org

OpenSCAD is a free software application for creating solid 3D computer-aided design (CAD) objects. It is a script-only based modeller that uses its own description language; the 3D preview can be manipulated interactively, but cannot be interactively modified in 3D. Instead, an OpenSCAD script specifies geometric primitives (such as spheres, boxes, cylinders, etc.) and defines how they are modified and combined (for instance by intersection, difference, envelope combination, or Minkowski sums) to render a 3D model. As such, the program performs constructive solid geometry (CSG). OpenSCAD is available for Windows, Linux, and macOS.

Overview[edit]

Scripting language[edit]

OpenSCAD employs The OpenSCAD Language to produce 3D graphics.

Previewing[edit]

For fast previewing of models using z-buffering, OpenSCAD employs OpenCSG and OpenGL.

The 3D model position can be interactively manipulated in the view with a mouse similarly to other 3D modellers. It is also possible to define a default "camera" position in the script.[citation needed]

Part colors can be defined in the 3D view (including transparency).[5]

Preview is relatively fast and allows interactive modifications while modifying the script.

The model renderer takes into account lighting, but the lighting source is not modifiable.

Use[edit]

OpenSCAD allows a designer to create accurate 3D models and parametric designs that can be easily adjusted by changing the parameters.[6]

OpenSCAD documents are human-readable scripts in plain ASCII text and potentially syntactically better suited to integrate with version control systems such as GIT.

As such, OpenSCAD is a programmer-oriented solid-modeling tool[7] and has been recommended as an entry-level CAD tool for designing open-source hardware such as scientific tools for research and education.[8]

It is often used to design 3D printed parts, which can be exported in various 3D file formats. Its script-based parametric nature allows it to be integrated into online model customization services, such as the "Customizer" tool on Thingiverse.

Animation of a Strandbeest model created with OpenSCAD

Animation is possible with a speed of a few images per seconds for simple models. The animation can have effect on any parameter, being it the camera position or the parts dimensions, position, shape or existence. It can be recorded as a set of images usable to build animated GIFs.

An experimental coupling with Calculix for FEM (Finite Element Method) is available.[9] FreeCAD can import OpenSCAD files also for FEM with Calculix or other supported FEM solvers.[10] FreeCAD features a workbench for interoperability with OpenSCAD.[11]

File formats[edit]

Imports[edit]

  • 2D drawings in DXF, SVG and PNG can be imported, then extruded as monolithic parts.
  • 3D parts can be imported in STL, OFF, AMF and 3MF and can be scaled and submitted to subtractive or additive operations.

Exports[edit]

OpenSCAD views and models can be exported to many different formats. Including:

  • Views: can be exported in PNG format.
  • 2D models can be exported in SVG, AutoCAD DXF, and PDF.
  • 3D parts can be exported in 3MF, AMF, OFF, and STL as simple volumes.[12] There is no color, material, or parts definition in the exported model.[citation needed]

Design[edit]

OpenSCAD is a wrapper to a CSG engine with a graphical user interface and integrated editor, developed in C++. As of 2016, it uses the Computational Geometry Algorithms Library (CGAL) as its basic CSG engine.

Its script syntax reflects a functional programming philosophy. Much as in Haskell, within a scope each "variable" is treated as a constant, immutable with at most one value.

Platform implementations[edit]

  • Official standalone version written in C++ for Windows, MacOS, and Linux
  • FreeCAD: has an OpenSCAD command line interface that can be used instead of the part solver or part workbench
  • Browser implementations are also available, such as cadhub.xyz and openjscad.azurewebsites.net.

See also[edit]

References[edit]

  1. ^ "Claire Wolf".
  2. ^ "OpenSCAD - News".
  3. ^ "Building OpenSCAD". GitHub. 21 November 2021.
  4. ^ "OpenSCAD - Downloads".
  5. ^ Transparency is evaluated in the construction order, so a part is only transparent for parts already built.
  6. ^ Evans, Brian (2012), Practical 3D Printers: The Science and Art of 3D Printing, Apress, p. 113, ISBN 9781430243922.
  7. ^ Pettis, Bre; France, Anna Kaziunas; Shergill, Jay (2012), Getting Started with MakerBot, O'Reilly Media, Inc., p. 131, ISBN 9781449338657.
  8. ^ Pearce, Joshua M. (2014), "Chapter 6: „Digital Designs and Scientific Hardware"", Open-Source Lab: How to Build Your Own Hardware and Reduce Research Costs, Elsevier, pp. 165–254, ISBN 9780124104624.
  9. ^ "Example". GitHub. 21 November 2021.
  10. ^ "FEM CalculiX - FreeCAD Documentation".
  11. ^ "OpenSCAD Workbench - FreeCAD Documentation".
  12. ^ "OpenSCAD User Manual/Export - Wikibooks, open books for an open world".

External links[edit]