Skip to main content

3D terrain mesh

3D terrain mesh screenshot

Terrain-like green surface mesh. Use it for elevation and terrain fields. The screenshot is captured from the native Fission chart gallery.

What the chart is for

3D terrain mesh belongs to the 3D and GL family. Its job is to make this data shape readable: Scene3D mesh vertices and indices. In a production interface, choose this chart when the visual form makes the user's question faster to answer than a table or a simpler chart would.

Avoid it when the visual form makes the user estimate more than necessary; choose the simplest chart that answers the product question.

Data model

Scene3D mesh vertices and indices. Keep the data close to the Rust type that describes it. Fission Charts is typed Rust, so each chart uses explicit series and component structs instead of string configuration hidden in a loosely typed object.

Rust API

FieldTypeNotes
title&strNames the chart for the screen, accessibility tree, and test output.
Scene3DScene3DDefines native 3D primitives, camera, light, and material data.
width / heightf32Optional fixed size; omit them when the scene should flex inside Fission layout.

Example

use fission_3d::{Scene3D, Vec3};

let scene = Scene3D::new()
.size(720.0, 420.0)
.camera(Vec3::new(3.5, 2.6, 5.0), Vec3::ZERO)
.ambient_light(0.45);

Interaction and animation

Charts can emit typed ChartInteractionEvent values when interaction is enabled. Handle those events in a reducer when the app needs hover, press, release, scroll, selection, or brush behavior. ChartAnimation stores duration, delay, stagger, easing, and reduced-motion behavior as deterministic chart data, so animation timing can be tested instead of being hidden in ad-hoc timers.

Testing guidance

For this chart, test the data mapping first, then test lowering, then capture a live screenshot when visual output changes. The screenshot for this page is refreshed with npm run charts:generate from the website package.

Tags: 3d, terrain.

3D and GL family overview