Expand description
Mesh-based items (Surface, Sphere, etc.)
Modulesยง
- gltf
gltf - glTF scene-graph import (opt-in via the
gltffeature). glTF 2.0 scene-graph import into trees ofMeshItems, opt-in via thegltfcargo feature. Thegltfcrate itself is re-exported here, so callers can parse documents without their own matching dependency. - sphere ๐
- Sphere โ a sphere mesh item.
- surface ๐
- Surface โ a parametric surface mesh item.
Structsยง
- Mesh
Item - A high-level mesh item with per-vertex data wrapped in PointVec for animation support.
- Sphere
- A sphere primitive centered at the origin.
- Surface
- A parametric surface defined by pre-generated mesh data.
Functionsยง
- angle_
between ๐ - Angle (in radians) between two vectors.
- compute_
smooth_ normals - Compute smooth vertex normals from a triangle mesh.
- generate_
grid_ indices - Generate triangle indices for a
nu ร nvgrid of vertices (row-major layout).