OpenSCAD to Laser Cutter

From Richmond Maker Labs
Jump to navigation Jump to search

OpenSCAD, although normally used for 3D modelling, can be used for 2D modelling for laser cutting. It can render 2D geometry directly and export to .dxf, suitable for RDWorks import, or you can use the projection() module to slice or flatten 3D geometry to get 2D geometry to render for export.

Known issues

OpenSCAD does not generate curves as arcs, so they are always built up of straight line segments. RDWorks does not like curves built of excessively short straight line segments, and thus will not cut holes that have been rendered at too high a resolution. If you zoom in in RDWorks you'll see the problematic holes have a dashed or broken outline. If your design has small circular holes, check the job in RDWorks Preview mode - problem holes will be shown with a very thick outline and will be partially or completely skipped when you run the simulation. Increasing the minimum arc segment length in OpenSCAD, either directly or by reducing the number of segments will resolve the issue.

Hints & Tips

Kerf (cut width) compensation

You can easily extend the outline of objects and reduce hole sizes to (partially) compensate for the width of the laser cutting beam. Note that the kerf (cut width) is not uniform from top to bottom and will vary slightly with position on the laser cutter bed, material and cutting parameters, and focus. To do so, measure or estimate the kerf, and in OpenSCAD do:

$kerf=0.15; //Edit in your measured kerf here!

      //2D geometry goes here
   circle(d=$kerf/2, $fn=16);  // move edge cuts out and hole cuts in by half beam width

Kerf Measurement Jig

Kerf measurement jig

To measure the kerf, cut this jig from some scrap of the same material as your work, in approximately the same position on the laser cutter bed. Next, carefully transfer to a flat surface without rearranging or flipping any tiles or the frame, and mark the frame and all the tiles with a continuous diagonal pencil or marker line so you can subsequently be certain none have been inadvertently flipped or rotated.

The actual measurement is taken by sliding all the tiles towards one end and measuring the narrowest part of the resulting gap with a set of feeler gauges, then dividing the result by ten. The result is the kerf at the narrowest depth of the cut (usually the bottom). Assuming the cut has a wedge shaped cross-section (usually true for surface focused single pass cuts), you can approximately measure the widest part of the cut by flipping every other tile starting from one end and re-measuring as above.

File:Lasercut Kerf including .dxf and .rld formats for non-OpenSCAD users