[OpenSCAD] Release Candidate

Ed Nisley ed.08.nisley at pobox.com
Thu Dec 22 17:34:54 CET 2011


On Thu, 2011-12-22 at 04:57 +0100, Marius Kintel wrote:
> Release Candidate of OpenSCAD 2011.12

Compiled & tested it on a couple of boxes around here, looked at some
models I'll be using in an upcoming Digital Machinist column, and found
some vanishing holes.

The simplest failing example got severely chopped down from this:

http://softsolder.com/2011/07/12/helmet-mirror-smaller-mirror-shaft/ 

The problem occurs with a rotation applied to the module invocation,
which uses a translation inside the difference operator (all for reasons
that made perfect sense at the time). With no rotation or no
translation, there (seems to be) no problem.

Increasing either the rotation or the translation triggers the problem,
with a transition region from "OK" to "both holes missing".

In all cases, the F6 CGAL rendering works fine, so this problem (seems
to) affect only the F5 OpenCSG preview.

//-----------
// Demo for problems with F5 preview
//  F6 CGAL compile works fine in all cases

module ElPlate() {
  union() {
	difference() {
		translate([1,0,0])  // for rotate(130) below, x=1 is OK, 2 kills
through hole, 3 kills both
		  scale([20,20,1.0])
			cylinder(r=0.5,h=2,$fn=30);         // body disk
	  translate([0,0,-0.1])
		cylinder(r=2.0/2,h=3.1);                // screw hole
	  translate([0,0,-0.1])
		cylinder(r=5.0/2,h=1.1,$fn=6);          // nut recess
	}
  }
}

// for body disk translate=[3,0,0] above: <126 is OK, 127 kills through
hole, 129 kills both

rotate(130)
  ElPlate();
//-----------

Both of the boxes run Xubuntu (10.04 and 11.10), have nVidia graphics
(OpenGL 2.0), had no problem with the older OpenSCAD version, and didn't
spit out any errors during compilation.

Other than that, though, the new version works *great*!

Many thanks...

-- 
Ed
http://softsolder.com




More information about the OpenSCAD mailing list