Scaling something to zero on one axis should probably be interpreted as a 2d projection (with slice=false) on the plane perpendicular to that axis, as you're essentially telling it to move all of the points to zero on that axis. This case could probably be caught before handing-off to CGAL without too much difficulty...

On Sunday, January 29, 2012 at 6:14 PM, Marius Kintel wrote:

Hi,

CGAL doesn't like scale factors of zero. The following example also crashes when rendered with CGAL:

scale([0,1,1]) cube();

There has been other issues with the CGAL transformations earlier, so perhaps we should at some point write our own replacement.

I'll be mostly offline the next three days - if anyone wants to take a crack at it, this method is a good place to start:

Response CGALEvaluator::visit(State &state, const TransformNode &node)

Cheers,

-Marius

_______________________________________________

OpenSCAD mailing list