OpenSCAD parametric chess set.

This is a series of modules I developed to learn OpenScad. The aim was to generate a series of parametric chess pieces that could be machined completely in one go using my 3+1 axis milling machine (a modified Proxxon MF-70).

The scripts are divided in a series of modules that generate the different pieces (pawn, rook, knight, bishop, queen and king) and a "main" module that generates two full sets of pieces positioned like in a chess board.

Its main inputs are:
-The diameter of the stock from which the piece will be carved.
-The number of sides of the pieces.
-A thickness parameter, that regulates the height of the pieces.

The STL and CSG files have been generated using the default values for the pieces (stockDiameter=22, layerThickness=4, numberOfSides = 8).

I haven't tried to machine or print the pieces yet. I tried, however, to import the model into Autodesk Fusion 360 to generate the toolpaths for machining. To do so, I had to export a CSG file in OpenSCAD, open the CSG file with FreeCAD, export it as a STEP file and then import it into Autodesk Fusion 360.