Cairnscale / The balance
The exported vertices and triangles describe the opening and completed assembly.
For a repeat run, use Python 3.11 in a virtual environment.
python -m pip install -r requirements.txt
python structure.py stack-surfaces.json rerun.json

The script uses the same level bearing faces as the depicted model. It uses convex hulls for uniform-density mass and rigid contact. Each stone is free to move under gravity. The test includes the loose layout and each partly built stack. Four combinations of timestep and friction are tested at each stage. Linear and angular drift are measured throughout each ten-second release. Mean contact reactions over the last half-second are compared with the theoretical supported weight. The animation between releases is choreographed.
Rock geometry was adapted from Poly Haven Rock Moss Set 02, CC0.
https://polyhaven.com/a/rock_moss_set_02
