GREAT PYRAMID OF GIZA — PARAMETRIC GRASSHOPPER C# SCRIPT Seven Wonders of the Ancient World Series | Wonder #1
================================================================================
GREAT PYRAMID OF GIZA — PARAMETRIC GRASSHOPPER C# SCRIPT
Seven Wonders of the Ancient World Series | Wonder #1
================================================================================
PRODUCT TITLE
-------------
Great Pyramid of Giza — Parametric Rhino/Grasshopper C# Script
(Seven Wonders of the Ancient World Series — Script 1 of 7)
TAGLINE
-------
Generate the complete Giza Plateau complex in clean NURBS geometry — from the
full pyramid solid down to individually modeled horizontal limestone courses —
ready for UE5 Datasmith, FBX, or any professional 3D pipeline.
SHORT DESCRIPTION (for listings / store previews)
--------------------------------------------------
A single Grasshopper C# Script component that procedurally builds the entire
Great Pyramid of Giza complex at any level of detail. Outputs clean Brep NURBS
geometry organized into 20 material-named layers, with one-click Rhino layer
baking for Unreal Engine 5 Datasmith/FBX export. Fully parametric — adjust
pyramid dimensions, casing thickness, course counts, and companion structures
via a simple CFG string. No plugins required.
FULL DESCRIPTION
----------------
Unlock the most historically accurate parametric model of the Great Pyramid of
Giza available for Rhino/Grasshopper. This professional-grade C# Script
component generates the complete Giza Plateau complex as clean, watertight NURBS
Brep geometry — from a single LOD-1 massing block all the way to individually
modeled horizontal limestone casing courses at LOD 24.
WHAT'S INCLUDED:
- One C# Script component (.cs) for Grasshopper in Rhino 6/7/8
- 24 progressive Levels of Detail (LOD 1–24), additive and layered
- 20-branch DataTree<Brep> output organized by material
- One-click Rhino layer baking with color-coded material layers
- UE5 Datasmith / FBX export-ready layer naming convention
- Full Giza Plateau complex geometry (see feature list below)
- CFG string parametric control — no scripting knowledge required
- Zero external plugin dependencies (pure Rhino + Grasshopper SDK)
GEOMETRY FEATURES BY LOD
--------------------------
LOD 1 — Pyramid massing solid (single closed Brep)
LOD 2 — Granite base platform / pavement level
LOD 5 — Tura limestone casing in horizontal courses (world-plane aligned)
LOD 6 — Pyramid capstone / pyramidion (gold-electrum finish)
LOD 7 — Descending Passage entrance and internal shaft
LOD 8 — Subterranean Chamber (rough-cut bedrock)
LOD 9 — Queen's Chamber with corbelled niche
LOD 10 — Grand Gallery (corbelled vault, ramp, notched ledges)
LOD 11 — King's Chamber (Aswan red granite, relieving chambers above)
LOD 12 — Mortuary Temple (east face, mudbrick/limestone)
LOD 13 — Causeway to Valley Temple (basalt-paved, walled)
LOD 14 — Valley Temple (red granite cladding)
LOD 15 — Subsidiary Queen Pyramids G1-a, G1-b, G1-c
LOD 16 — Great Sphinx (simplified carved limestone form)
LOD 17 — Khafre Pyramid complex (south-west offset position)
LOD 18 — Menkaure Pyramid complex (further south-west)
LOD 19 — Desert sand context plane
LOD 20 — Individual horizontal casing stone blocks (rows × columns)
LOD 22 — Boat Pit with cedar funerary barque (south side)
LOD 23 — Worker Village context blocks (south of plateau)
LOD 24 — Sphinx Temple (frontal enclosure)
MATERIAL LAYERS (20 branches)
------------------------------
Branch 0 — M_Tura_Limestone (exterior casing, causeway flags)
Branch 1 — M_Core_Limestone (pyramid core, passage walls)
Branch 2 — M_Red_Granite (King's Chamber, sarcophagus)
Branch 3 — M_Aswan_Granite (Valley Temple cladding)
Branch 4 — M_Desert_Sand (plateau ground plane)
Branch 5 — M_Basalt_Paving (mortuary temple floor)
Branch 6 — M_Mudbrick (mortuary temple walls)
Branch 7 — M_Cedar_Timber (solar barque, passage lintels)
Branch 8 — M_Gold_Electrum (pyramidion / capstone)
Branch 9 — M_Interior_Plaster (Queen's Chamber, passages)
Branch 10 — M_Quartzite (sarcophagus lid)
Branch 11 — M_Alabaster (offering basin)
Branch 12 — M_Sphinx_Limestone (Sphinx body and head)
Branch 13 — M_Causeway_Stone (causeway walls and ramp)
Branch 14 — M_Painted_Relief (mortuary temple decoration)
Branch 15 — M_Bronze_Fittings (door pivots, hardware)
Branch 16 — M_Water_Channel (boat pit lining)
Branch 17 — M_Rubble_Core (core fill blocks)
Branch 18 — M_Enclosure_Wall (temenos / plateau boundary)
Branch 19 — M_Context_Stone (worker village, ancillary)
KEY PARAMETRIC CONTROLS (CFG string)
--------------------------------------
Pass a semicolon-delimited string of key=value pairs to override any default:
lod=24 — Level of Detail (1–24)
base_half_a=115200 — Base half-dimension N-S (mm) [230.4 m]
base_half_b=115090 — Base half-dimension E-W (mm) [230.18 m]
pyramid_height=146500 — Original height (mm) [146.5 m]
casing_thickness=2500 — Face-normal casing stone depth (mm)
course_bands=40 — Number of horizontal casing course bands
casing_courses=30 — Individual stone courses for LOD 20
casing_cols=18 — Stone columns per face per course
sphinx_x=280000 — Sphinx X offset from pyramid center (mm)
khafre_x=-220000 — Khafre Pyramid X offset (mm)
khafre_y=-640000 — Khafre Pyramid Y offset (mm)
menk_x=-430000 — Menkaure Pyramid X offset (mm)
menk_y=-1190000 — Menkaure Pyramid Y offset (mm)
Example CFG string:
lod=12;pyramid_height=138000;casing_courses=20
GEOMETRIC ACCURACY NOTES
--------------------------
- All casing stones modeled as HORIZONTAL courses — flat tops and bottoms
aligned to the world XY plane, exactly as the original Tura limestone blocks
were laid. Face-normal thickness (2500 mm default) projects to ~1965 mm
horizontal depth, consistent with surviving casing stones at the base.
- Pyramid base accurately reflects the slight rectangular asymmetry of the
original structure (230.4 m N-S × 230.18 m E-W).
- Original height of 146.5 m modeled (capstone position); current reduced
height (138.8 m) available via CFG override.
- All NURBS Brep geometry — no meshes, no SubD — fully compatible with
precision manufacturing, CFD, and architectural workflows.
HOW TO USE
-----------
1. Open Rhino and launch Grasshopper (Grasshopper command or Ctrl+Shift+G)
2. Double-click the Grasshopper canvas → search "C# Script" → place component
3. Double-click the C# Script component to open the editor
4. Select all default code and replace with the contents of this .cs file
5. Click OK / close the editor
6. Connect inputs:
CFG (string) — leave empty for defaults, or wire a Panel with overrides
Bake (bool) — set True to bake geometry to Rhino layers
7. Connect output:
Geometry (DataTree<Brep>) — wire to a custom preview or Param component
8. The script generates the complete complex at the specified LOD
BAKING TO RHINO LAYERS
------------------------
Set the Bake input to True (use a Boolean Toggle). The script will:
- Create 20 named material layers with color coding
- Bake all Brep objects to their respective material layers
- Layers are ready for Datasmith export or manual FBX export by layer
EXPORT TO UNREAL ENGINE 5
--------------------------
Via Datasmith (recommended):
- Install the Rhino Datasmith plugin for UE5
- File > Export > Datasmith (.udatasmith)
- Layers map directly to UE5 static mesh actors with material slots
Via FBX:
- File > Export Selected (select by layer)
- Export as FBX 2019 with "Export object layers as groups" checked
- Import into UE5 with "Import Materials" and use layer names to assign
COMPATIBILITY
--------------
Rhino version: 6, 7, 8 (Windows and Mac)
Grasshopper: Built-in (no separate install)
External plugins: None required
.NET target: .NET 4.8 (Rhino 7/8) / .NET 4.5 (Rhino 6)
UE5 Datasmith: 5.0, 5.1, 5.2, 5.3, 5.4
SERIES CONTEXT
---------------
This script is Wonder #1 in the Seven Wonders of the Ancient World Series:
1. Great Pyramid of Giza [THIS SCRIPT]
2. Hanging Gardens of Babylon [coming soon]
3. Statue of Zeus at Olympia [coming soon]
4. Temple of Artemis at Ephesus [coming soon]
5. Mausoleum at Halicarnassus [coming soon]
6. Colossus of Rhodes [coming soon]
7. Lighthouse of Alexandria [coming soon]
Also available: Colosseum Parametric Script (Parametric Monument Series #1)
SUPPORT & CUSTOMIZATION
------------------------
Questions about setup, CFG parameters, or UE5 integration?
Custom LOD, material, or dimension modifications available on request.
Script authored with Rhino SDK + Grasshopper SDK.
Geometry methodology: NURBS Brep, RhinoCommon API, GH_ScriptInstance.
================================================================================
© 2026 Parametric Monument Series — Great Pyramid of Giza Script v1.0
For personal, commercial, and educational use. No redistribution.
================================================================================