[OpenSCAD] A bug with rendering a solid
William Adams
william_a_adams at msn.com
Fri Sep 2 17:58:59 CEST 2011
Ah yes. I thought about whether there was enough precision in the numbers to ensure things would be ok. I guess not. Converting to triangles makes sense. I wish CGAL would just do this automatically. Thanks for the conversion, that makes my life much easier. -- William
===============================
- Shaping clay is easier than digging it out of the ground.
http://internationalwilliam.spaces.msn.com/
From: marius at kintel.net
Date: Fri, 2 Sep 2011 17:54:22 +0200
To: openscad at rocklinux.org
Subject: Re: [OpenSCAD] A bug with rendering a solid
Hi,
Thanks for the report.
The error message is a bit misleading. The problem in this case is that the underlying geometry engine (CGAL) is extremely picky when it comes to polygons. All polygons must be exactly planar. In your case, there are minor deviations from planarity, which is detected by CGAL (using an exact number representation). One workaround for this is to always specify triangles, as they are guaranteed to be planar.
I'll take note on improving this.
I've attached your file converted to triangles.
-Marius
_______________________________________________
OpenSCAD mailing list
OpenSCAD at rocklinux.org
http://rocklinux.net/mailman/listinfo/openscad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rocklinux.net/pipermail/openscad/attachments/20110902/fa73b725/attachment.html
More information about the OpenSCAD
mailing list