FSL at a Glance
Welcome to the engine room!
You can design complete gemstones in ProFacet using only the visual Interactive Slicer—you never have to write a line of code. Behind the scenes, though, every click in the Slicer is writing FSL (Facet Specification Language).
Learning to read FSL takes about ten minutes, and once it clicks, you'll wonder how you ever worked without it. Want to test a different refractive index? Change one number. Want to see what happens if a crown tier is two degrees shallower? Type the new number directly. Want to let the GPU Optimizer tune five tiers at once? Add +/- 1.5 after the angles you want to float.
Reading Your First FSL Recipe
If you have ever read a traditional faceting diagram, you already know 90% of FSL. Let's read a complete Round Brilliant from top to bottom:
// 1. Stone & Machine Setup
name = "Round Brilliant"
ri = 2.15 // Cubic Zirconia (use 1.54 for Quartz, 1.76 for Sapphire)
gear = 96 // 96-tooth index gear
// 2. Pavilion & Girdle
P1 3 @ 41.0 +/- 1.5 : cp() xx8 // 16 pavilion breaks @ 41° meeting the center point
G1 3 @ 90.0 : size // 16 girdle facets @ 90° (reuses xx8 from P1)
P2 0 @ 39.8 +/- 1.0 : gp() x8 // 8 pavilion mains @ 39.8° meeting the girdle
// 3. Crown & Table
C1 3 @ 48.0 +/- 2.0 : mp(P1, P2) + girdle xx8 // 16 crown breaks meeting P1/P2 + girdle gap
C2 0 @ 36.0 +/- 1.5 : gp() x8 // 8 crown mains meeting the girdle
C3 6 @ 24.0 : mp(C1) x8 // 8 star facets meeting C1
T 0 @ 0.0 : mp(C2) x1 // 1 flat table meeting C2
Notice how each cut line follows the exact same sentence structure:
TierName Index @ Angle : Target Symmetry
For example, take line P1:
P1is the name of the tier (since it starts withP, ProFacet knows it belongs on the pavilion).3 @ 41.0means: set the index gear to tooth3and set the mast angle to41.0°.+/- 1.5is optional: it tells the Optimizer it may move this angle up or down by1.5°.: cp()tells the machine how deep to cut—stop when the facet touches the center point (cp()).xx8is the symmetry: repeat this cut 8 times around the gear with left/right mirror pairs, giving 16 facets in total.
Quick Reference Cheat Sheet
How to Aim a Cut (The 3 Styles)
Every facet line uses one of three ways to decide when to stop cutting:
| Style | Syntax Example | How It Works |
|---|---|---|
| 1. Angle + Point | C1 0 @ 35.0 : mp(P1, G1) | Tilts to 35.0° and cuts until the facet touches a landmark point (cp(), gp(), or mp()). |
| 2. Angle + Depth | G1 0 @ 90.0 : 1.0 | Tilts to 90.0° and cuts to a fixed distance (1.0) from the center of the stone. |
| 3. Point + Point | C3 2 : p1 : p2 | Leaves out @ Angle and gives two points instead. ProFacet calculates whatever angle slices cleanly through both points. |
The Landmark Helpers You Will Use Most
| Helper | Example | What It Finds |
|---|---|---|
cp() | : cp() | The center axis of the stone (used for the initial culet point). |
gp() | : gp() | The girdle corner sitting right in front of the current tooth index. |
mp(...) | : mp(P1, G1) | The corner (meetpoint) where tiers P1 and G1 intersect. |
+ girdle | : mp(P1) + girdle | Lifts a crown target slightly so the girdle has thickness instead of a sharp knife-edge. |
ep(edge, t) | : ep(edge(C1:0, C1:6), 0.5) | Picks a point partway (t = 0.0 to 1.0) along an existing edge or between two points. |
surface(u, v) | : surface(0.75, 0.5) | Drops a point onto the stone's surface at a fractional width/length (0..1)—great for step cuts and checkerboards. |
Where to Go Next
- Ready to learn the basics step by step? Continue to Core Concepts and Facets & Tiers.
- Want to see complete stones you can copy and tweak? Browse the Interactive Cut Examples.
- Prefer writing standard loops and functions in Lua? Jump to Scripting with Lua.