[OpenSCAD] Creating DXF file with round shapes

doug moen doug at moens.org
Wed Jun 29 08:56:20 EDT 2016

OpenSCAD represents 2D shapes as polygons. That's just the way it works. So
circles are represented by regular polygons.

If you write
   projection() cylinder(h=12, r=80, $fn=100);
then you have direct control over the number of line segments used to
approximate the circle (in this case, 100). You can pick a $fn value that's
high enough so that the circle looks good in laser cutter output.

More information here:

On 29 June 2016 at 07:49, Eric Buijs <ebuijs at mac.com> wrote:

> Hello,
> I use OpenSCAD to export dxf files that I need for laser cutting. When I
> create circles a dxf file with multiple line segments per circle is
> generated by OpenSCAD. This causes problems on the laser cutter that
> "perceives" this a multiple independent lines.
> As an example: projection() cylinder(h=12, r=80); generates 30 line
> segments.
> Is there a way around this within OpenSCAD or is it just the way that
> OpenSCAD generates dxf files?
> I use OpenSCAD version 2015.03-3 on OSX (10.10).
> --
> View this message in context:
> http://forum.openscad.org/Creating-DXF-file-with-round-shapes-tp17833.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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20160629/579369cd/attachment-0002.html>

More information about the Discuss mailing list