Build a model scene
Demonstrates the viewer contract on a model without analysis results.

The model before it is solved: its parts, supports (red) and loads (blue).
Open in 3D turn it, cut it, hide parts: in xfea's viewer, in your browser
The script
Section titled “The script”examples/scripts/02_core_concepts/viewers/model_scene.py. Run it from the repository with uv run python examples/scripts/02_core_concepts/viewers/model_scene.py, or, with xfea-examples installed, xfea-examples run 02_core_concepts/viewers/model_scene.py.
from xfea_examples import show_viewerfrom xfea_examples.models import shell_plate_model
model, _, _, _, _, _, _, _ = shell_plate_model(name="model_scene")show_viewer(model)© 2026 Francesco Ranaudo · Text and pictures CC BY 4.0 · Code Elastic License 2.0 · how to reuse them