STLPuzzle Maker

By Israel M.

This is a tutorial on how you can make your own lazer cut puzzle using OpenJsCad! While the name of this page is STL Puzzle, OpenJsCad allows to create regular DXF files as well.

While on the topic of OpenJsCad, I want to give credit to the creators of the library. Most of the fancy 3d rendering on this page and also much of the structure for this html page is derived from the project source at OpenJsCad on GitHub.

Lets get started making the puzzle!



1. Preface

The goal of this tutorial is to make a puzzle that looks like this:

To do so, we need 3 parts

  1. A backboard plate for the puzzle pieces to lay on
  2. A plate with the puzzle pieces cut out
  3. A clear cover to put on top so that the puzzle can be on display when finished


2. Getting Setup

I have provided the backboard piece and clear cover as solidwork parts or regular dxf files. Note: These pieces are designed to contain a puzzle 10 inces in diameter.

The backboard and clear cover configurations as a SolidWorks part
The backboard piece dxf
The clear cover dxf

Other things you will need are as follows



3. Creating the puzzle cutout

Below is a simple OpenJsCad rendering of an extruded circle. This is enough to generate an STL file which has a nice triangle mesh pattern. There are a few parameters to play with below, but you can also just write your own code to create an extruded shape.

Once you are done playing around, download the STL file and continue to step 4. If you created a 2d drawing, download the DXF file and skip to step 5.

For tips see: this wiki or the main OpenJsCad demo



4. Coverting the STL to a DXF

  1. Open the STL file in MeshLab and save it as a DXF file.
  2. Copy the backboard case .dxf file. Name it puzzle.dxf
  3. Open both DXF files in draft sight.
  4. In DraftSight, copy the dxf geometry from the stl dxf file and paste it in the backboard case dxf. Make sure to paste it somewhere outside of the backboard case geometry.
  5. Select the stl dxf geometry and color it a different color, such as red. This is so that it can be cut before the backboard is cut.
  6. Using the move tool, click on the center of the stl dxf gemotry, then click on the center of the backboard case.
    This should move the stl dxf geometry to the center of the backboard case geometry.
  7. Save the file (it should be called puzzle.dxf)


5. Adding an engraving to the puzzle

  1. Find some image that you want to engrave onto the puzzle. Images that are very simple with obvious outlines work best.
    The example puzzle is using this image.
  2. Open the image in inkscape and using the Object>Transform tool, transform the dimensions to 9in x 9in.
  3. Using the Path>Trace Bitmap tool, convert the image to a vector image. You may have to play around with the settings and use the preview to get everything just right
  4. Delete the underlying bitmap image so that only the vector image is left
  5. Save the file as a DXF
  6. If the DXF file outputed by InkScape doesn't work very well. Try an online tool such as this.
  7. Like Step 4, add the image dxf to the puzzle dxf file. Make sure to color it a entirely different color.
  8. If everthing went well in your puzzle.dxf should look like this:


6. Cut!