Skip to content

Brick pour

Many contacts

Pour toy bricks from a jar down three chutes.

0.00 s
The steel preset (the default), recordedon an NVIDIA RTX PRO 6000 Blackwell.

Run it

Terminal window
cd examples
# the default preset (steel), then the others
uv run shelf play brick_pour
# change solver settings live
uv run shelf tune brick_pour

Source: examples/shelf/02_many_contacts/brick_pour/ · ported from steel-webgpu assets/scenes/brick_pour (hero_montage export) @ ad03e49

Presets

PresetSolverStatusChecked

Solvers with no row are untested on this example. The full settings are inpresets.toml.

Code

examples/shelf/02_many_contacts/brick_pour/example.py
# SPDX-FileCopyrightText: Copyright (c) 2026 Skild AI and the Steel contributors
# SPDX-License-Identifier: Apache-2.0
# Direct source: steel-webgpu; see presets.toml and THIRD_PARTY.md.
# Modified for Steel Shelf: preset-driven execution and shared runner integration.
###########################################################################
# Example Brick pour
#
# The arm tips a jar of studded toy bricks; they tumble out and slide down three collection chutes.
#
# Rebuilt from steel-webgpu's exported scene (assets/scenes/brick_pour: scene.json
# and scene.bin, copied next to this file); see common/exported_scene.py. The
# visual meshes draw when a steel-webgpu checkout sits next to the shelf.
#
# Command: python -m shelf run brick_pour
#
###########################################################################
import newton.examples
from common.exported_scene import ExportedSceneExample
class Example(ExportedSceneExample):
file = __file__
if __name__ == "__main__":
parser = Example.create_parser()
viewer, args = newton.examples.init(parser)
newton.examples.run(Example(viewer, args), args)