openscad/openscad — Issue #77: Minkowski issues
Author: brad
Created: 2012-02-01 02:28:04+00:00
State: open

I just ran into a couple minkowski issues using the latest code.

If I run the following OpenSCAD code:

minkowski() {
union() {
cube([100, 100, 100], center = true);
cube([60, 50, 100]);
}
sphere(2);
}

I get this error in the console:

CGAL error in CGAL_Nef_polyhedron's minkowski operator: CGAL ERROR: assertion violation!
File: /usr/include/CGAL/Convex_decomposition_3/SM_walls.h
Line: 363
Explanation: wrong handle

I get the feeling that this may simply be a situation that the algorithm by minkowski cannot handle, but OpenSCAD should at least give a more user friendly error, right?

If I then change the second cube to "cube([50, 50, 100]);" OpenSCAD handles it just fine. If I change the cube back to the original and compile again OpenSCAD will crash! This only occurs when compiling the good version first. Does it have something to do with the cache?

I'm running 64-bit Linux