Snow White Dining
Why This Example Exists
This is a compact visual example with enough personality to be remembered. It builds a dwarf-sized dining table with eight chairs: one larger chair for Snow White and seven smaller chairs for the dwarfs.
It demonstrates that FCS is not only formulas. It can describe a parametric scene, reuse component classes, place repeated objects, and produce a visual output.
Update note: this example now uses a warm wood material layer in Box.fcs, so the furniture has material metadata rather than only plain geometry.
Agent note: the iframe above uses the same scene JSON linked in the file list. If the embedded viewer is unavailable, use the raw HiScene file directly and open it in https://viewer.histruct.com/.
What It Teaches
gclassloads reusable component definitions.gblockplaces component instances.- Parameters drive table and chair dimensions.
- Local coordinate systems position and rotate objects.
layer ... material { ... }attaches PBR-style visual material properties.- One source model can produce a HiScene viewer output.
Files
Source Preview
layer {lWarmWood} color BurlyWood material {
SurfaceColor := {R := 0.72, G := 0.48, B := 0.28},
Roughness := 0.62,
Metalness := 0.0,
Side := "Front"
}
tableWidth := 0.80
tableLength := 1.80
tableHeight := 0.50
gclass {gcTable} filename "Table.fcs"
gclass {gcChair} filename "Chair.fcs"
gblock {gbTable} gclass {gcTable} lcs (GCS)
parameters {tableWidth=tableWidth, tableLength=tableLength, tableHeight=tableHeight}
The full source places Snow White at one end, three dwarfs on each long side, and one dwarf at the far end. Box.fcs applies the warm-wood layer to the generated box faces.
Try Locally
When FLI is available, the validation loop should produce a scene from:
fli.exe site/content/knowledge-base/examples/snowwhite-dining/DiningScene.fcs
The exact scene-generation flags may depend on the local FLI version. This page intentionally records the example first; the command should be tightened once the FLI workflow is verified here.
View Output
The repository already contains expected HiScene output:
The generated HTML embeds that output through viewer.histruct.com using a share hash. This keeps the local preview working before the final public D-Zone URL exists.
Try In Golem
Future placeholder:
https://golem.histruct.com/?example=snowwhite-dining
Useful first prompt:
Make the table longer and add two more dwarf chairs. Keep the spacing readable.
Common Mistake
Rotation matters. The chairs do not only move; they must face the table. Watch the Rz(...) transforms in DiningScene.fcs.
Next Step
After this example, study: