OpenSCAD

The Programmers Solid 3D CAD Modeller

OpenSCAD release: 2014.03

9 Mar 2014

OpenSCAD 2014.03 has just been released!

The source code, as well as binaries for Mac OS X, Windows and Linux are ready for download.

Lots of thanks go to everyone who've contributed to this release through development, testing, bug reports, discussions and bounties.

A summary of changes since last release follows.

Take care,
-Marius

Summary of changes

Language Features

Program Features

  • Cmd-line: --info parameter prints system/library info
  • Cmd-line: --csglimit parameter to change CSG rendering limit
  • Cmd-line: Better handling of cmd-line arguments under Windows
  • GUI: Added Reset View
  • GUI: Added Search&Replace in editor
  • GUI: Syntax highlighting now has a dark background theme
  • GUI: We now create a backup file before rendering to allow for recovery if OpenSCAD crashes/freezes
  • GUI: Accessibility features enabled (e.g. screenreading)

Bugfixes/improvements

  • Reading empty STL files sometimes caused a crash
  • OPENSCADPATH now uses semicolon as path separator under Windows
  • polyhedron() is now much more robust handling almost planar polygons
  • Automatic reloads of large designs are more robust
  • Boolean logic in if() statements are now correctly short-circuited
  • rands() with zero range caused an infinite loop
  • resize(, auto=true) didn't work when shrinking objects
  • The $children variable sometimes misbehaved due to dynamic scoping
  • The --camera cmd-line option behaved differently then the corresponding GUI function
  • PNG export now doesn't leak transparency settings into the target image
  • Improved performance of 3D hull() operations
  • Some editor misbehaviors were fixed
  • Stability fixes of CGAL-related crashes
  • Windows cmd-line can now handle spaces in filenames
  • Default CSG rendering limit is now 100K elements
  • Fixed a crash reading DXF files using comma as decimal separator
  • Fixed a crash running the cmd-line without a HOME env. variable
  • Intersecting something with nothing now correctly results in an empty object

Deprecations

  • child() is no longer supported. Use children() instead.
  • polyhedron(triangles=[...]): Use polyhedron(faces=[...]) instead.

Misc

  • Test framework now shares more code with the GUI app
  • Test report can now be automatically uploaded to dinkypage.com
  • Better compatibility with BSD systems
  • Qt5 support

Google Summer of Code 2014

24 Feb 2014

OpenSCAD, in collaboration with BRL-CAD, has been accepted to Google Summer of Code 2014!

Project suggestions have been posted to the wiki. If you're interested in participating, please get in touch on the mailing list or IRC to discuss details and to help you get your feet wet. We're also open to new ideas.

If you're interested, please familiarize yourself with the requirements and application process.

Logo (c) Google CC-BY-NC-ND 3.0


Suggested projects include:

OpenSCAD release: 2013.06

18 Jun 2013

OpenSCAD 2013.06 has just been released!

The source code, as well as the Mac OS X binaries can be downloaded. Binaries for Windows and Linux will trickle in when they've been built and tested.

Thanks goes to everyone who's contributed to this release, through development, bug reports, email discussions and being willing to use development snapshots.

As usual, we've added and modified a few language features, as well as added functionality in the GUI and cmd-line tools, as well as a long list of bugfixes and stability improvements.

A summary of changes since last release follows.

Take care,
-Marius

Summary of changes

Language Features

  • linear_extrude now takes a scale parameter:
    linear_extrude(height=a, slices=b, twist=c, scale=[x,y])
  • Recursive use of modules is now supported (including cascading child() operations), see example024
  • Parameter list values can now depend on earlier values: for (i=[0:2], j=[0:i])
  • value assignments in parameters can now depend on already declared parameters
  • Added resize() module

Program Features

  • Added basic syntax highlighting in the editor
  • There is now a built-in library path in user-space
  • Commandline output to PNG, with various camera and rendering settings.
    Run openscad -h to see usage info or see the user manual
  • Attempting to open or drag&drop dxf, off or stl files in the GUI will now create an import statement.
  • The preview operator (%) will now preserve any manually set color
  • The highlight operator (#) will now color the object in transparent red
  • Mac: Added document icon
  • Mac: Added auto-update check
  • Windows: Better cmd-line support using the openscad.com executable

Bugfixes

  • Importing files is now always relative to the importing script, also for libraries
  • We didn't always print a warning when CSG normalization created too many elements
  • Binary STLs can now be read on big endian architectures
  • Some binary STLs couldn't be read
  • Fixed some issues related to ARM builds
  • CGAL triangulation more lenient - enables partial rendering of 'bad' DXF data
  • The Automatic Reload feature is now more robust
  • If a file couldn't be saved it no longer fails silently
  • Fixed a number of crashes related to CGAL and OpenCSG rendering or complex models
  • The lookup() function had bad boundary condition behavior
  • The surface() module failed when the .dat file lacked a trailing newline
  • The hull() module could crash if any of the children were empty objects
  • Some problems using unicode filenames have been fixed

Misc

  • Build scripts have been further improved
  • Regression test now creates single monolithic .html file for easier uploading
  • Regression test auto-starts & stops Xvfb / Xvnc if on headless unix machine
  • The backend is finally independent of Qt
  • Windows: We now have a 64-bit version

Known Bugs

  • Linux: command-line png rendering on Gallium is flaky.
    Workaround: use CGAL --render or hardware rendering.

New Website

5 May 2013

After years of ignoring the OpenSCAD website, it's finally time to give it a well-deserved facelift. The whole site is fully reworked, the content has been made a lot more available, especially the documentation. We've also launched a web forum mirror of the mailing list at forum.openscad.org. The gallery page is still work in progress and will gradually be populated with a better selection of examples.

Feedback, suggestions for changes or patches are welcome (PS! the website is a git repository).

Thanks to Jane Tingley and Max Stein for helping out with content, visual design and web development.

OpenSCAD release: 2013.01

17 Jan 2013

I've just released OpenSCAD 2013.01. The source package as well as the Mac OS X binaries can be downloaded from openscad.org. Binaries for Linux and Windows will appear when the package managers get them built and tested.

Thanks a lot to all contributors - there has been significant contributions, especially towards build systems and automated testing!

Have fun,
-Marius

Summary of changes in this release:

Features

  • Snappier GUI while performing CGAL computations (computations running in separate thread)
  • The size of the misc. caches can now be adjusted from Preferences
  • The limit for when to disable OpenCSG can now be adjusted from Preferences
  • Added Dot product operator: vec * vec
  • Added Matrix multiplication operator: vec * mat, mat * mat
  • Added search() function
  • Dependencies are now tracked - any changes in uses/included files will be detected and cause a recompile
  • The OPENSCADPATH environment variable is now implemented will have precedence when searching for libraries
  • .csg files can now be opened from the GUI
  • linear_extrude() will now assume that the first parameter means 'height' if it's a number

Bugfixes

  • use'ing an non-existing file sometimes crashed under Windows
  • Better font handling: Ensure a monospace font is chosen as default
  • Division by zero caused hang in some cases (e.g. sin(1/0))
  • Larger minkowski operations sometimes caused a crash after a CGAL assert was thrown
  • Fixed crashes in shared_ptr.hpp (or similar places) due bugs in cache management and CSG normalization
  • scale() with a scale factor of zero could cause a crash
  • Fixed a number of issues related to use/include
  • Providing an unknown parameter on the cmd-line caused a crash
  • cmd-line overrides using -D now also work for USEd modules
  • Modifier characters can now be used in front of if statements
  • rotate() with a vector argument with less that 3 elements used uninitialized variables, ending up being non-deterministic.
  • .csg files will now have relative filenames whenever possible
  • Don't just ignore geometric nodes having zero volume/area - when doing difference/intersection, they tend to turn negative objects into positive ones.
  • Always use utf-8 file encoding, also under Windows
  • A lot of build script fixes
  • Some other crash bugs fixes

Deprecations

  • The old include syntax "<filename.scad>" without the include keyword is no longer supported and will cause a syntax error.

OpenSCAD release: 2011.12

29 Dec 2011

I've just released OpenSCAD 2011.12. The source package as well as the Mac OS X binaries can be downloaded from openscad.org. Binaries for Linux and Windows will appear when the package managers get them built and tested.

This release of OpenSCAD has taken a lot of time to get out the door, primarily due to the backend being refactored to facilitate further development and the introduction of a regression test framework. The combination of these should make it possible to do more rapid releases in the future.

Thanks a lot to all contributors!

Have fun,
-Marius

Summary of changes in this release:

Features

  • The MCAD library is now bundled with OpenSCAD
  • Added len() function. Takes one vector or string parameter and returns its length.
  • The index operator [] now works on strings
  • The version() function will return the OpenSCAD version as a vector, e.g. [2011, 09]
  • The version_num() function will return the OpenSCAD version as a number, e.g. 20110923
  • hull() Now supports 3D objects
  • hull() with 2D object can now use for loops and boolean operations as children
  • New import() statement reads the correct file format based on the filename extension (.stl, .dxf and .off is supported)
  • The color() statement now supports an alpha parameter, e.g. color(c=[1,0,0], alpha=0.4)
  • The color() statement now supports specifying colors as strings, e.g. color("Red")
  • The color() statement now overrides colors specified further down in the tree
  • if()/else() and the ternary operator can now take any value type as parameter. false, 0, empty string and empty vector or illegal value type will evaluate as false, everything else as true.
  • Strings can now be lexographically compared using the <, <=, >, >= operators
  • Added PI constant.
  • Number literals in scientific notation are now accepted by the parser
  • Added import and export of the OFF file format
  • Now uses standard shortcuts for save, reload and quit on Linux and Windows. F2/F3 will still work but is deprecated.
Bugfixes:
  • Complex CSG models sometimes took extremely long time to normalize before OpenCSG preview
  • square() crashed if any of the dimensions were zero
  • Flush Caches didn't flush cached USE'd modules
  • STL export should be a bit more robust
  • Dropping a file into the editor under Windows didn't work (double C:/C:/ problem)
  • On some platforms it was possible to insertion rich text in the editor, causing confusion.
  • Less crashes due to CGAL assertions
  • OpenCSG should now work on systems with OpenGL 1.x, given that the right extensions are available
  • include now searches librarydir
  • The $fs parameter yielded only half the number of segments it should have
  • surface(center=true) is now correctly centered in the XY plane
Deprecations:
  • dxf_linear_extrude() and dxf_rotate_extrude() are now deprecated.
  • se linear_extrude() and rotate_extrude() instead.
  • The file, layer, origin and scale parameters to linear_extrude() and rotate_extrude() are now deprecated. Use an import() child instead.
  • import_dxf(), import_stl() and import_off() are now deprecated. Use import() instead.
  • When exporting geometry from the cmd-line, use the universal -o option. It will export to the correct file format based on the given suffix (dxf, stl, off). The -x and -s parameters are still working but deprecated.
  • F2 and F3 for Save and Reload is now deprecated