FSL Language Guide
The Facet Specification Language (FSL) is the handful of commands you type inside the studio to describe a cut. Most designs come together visually in the Interactive Slicer, and FSL is the toolbox waiting right beside it whenever you want to tweak numbers directly, line up tricky meetpoints, or build an exotic girdle outline.
Every code box in these chapters is live: click ▶ Run Code to build the stone and spin it in 3D right on the page, or toggle to the Lua tab to see the same recipe written in Lua.
Chapters in Order
If you are new to FSL, the first three chapters cover everything you need for 95% of gemstone designs. The remaining chapters are there when you want to explore advanced point constructions or procedural scripting:
ri, gear, color), variables, visual debug markers (show), and console output (print).
4. Point Helpers Reference →
A complete guide to cp(), gp(), mp(), edge(), ep(), prz(), fred(), and surface().
5. Expressions & Math →
Using +/- optimization hints, Math functions, 3D vectors, planes, and arrays.
6. Stone Inspection (stone()) →
Measuring table %, depth %, girdle evenness, and reading raw vertices and faces.
7. Functional Programming →
Packaging repeated cutting patterns into clean arrow functions using map, filter, and reduce.