[OpenSCAD] Clarifying behaviors

don bright hmbright at fastmail.com
Sat Oct 1 21:38:24 EDT 2016

In my experience the "de facto" language spec is in the several hundred
regression tests. 

Just as a simple example,  here is the test for "min, max" functions


Here are the expected results


If a build doesnt produce those results, the test will fail. 

I have a feeling that most of the people working on the project do not
want to make changes that break the regression tests. 

If you dig around the tests/scad you can find tests for vector / list
operations. I am not sure if the complicated ones you are using are in
there, but they might be. 

There is a Travis CI automatic test that gets run every time someone
commits code to the master branch. It actually runs the regression tests
as part of it's "build". You can see results here


past results here


  don bright
  hmbright at fastmail.com

On Sat, Oct 1, 2016, at 05:50 PM, Ronaldo wrote:
> I asked this before but got no answer. By mistake, I found that I could
> use a
> 3x3 matrix instead of a 4x4 in the multmatrix() operator to get a linear
> transformation. It seems that, in general, extra lines and columns of the
> input matrix (if more then 4 is present) are discarded and missing
> elements
> from the 4x4 standard are fulfilled by the respective elements of the
> identity matrix. You can confirm this displaying the CSG tree. The
> important
> case for me is the possibility to input a 3x3 matrix when I don't need a
> translation. Don't you think this simplifies the code and should be
> documented in the on line manual?
> --
> View this message in context:
> http://forum.openscad.org/Clarifying-behaviors-tp18492p18505.html
> Sent from the OpenSCAD mailing list archive at Nabble.com.
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

More information about the Discuss mailing list