WasmGPU.geometry¶
Summary¶
WasmGPU.geometry is the geometry factory facade. It creates custom vertex/index geometry and built-in primitives, curves, and surfaces; the returned Geometry objects can be reused by one or more meshes and follow their own reference-counted lifetime.
Canonical documentation namepaths use geometry.* for directly traversable factories and geometry#* for members of a returned geometry instance.
Syntax¶
Available APIs¶
- geometry.custom creates geometry from a descriptor.
- geometry.box, geometry.sphere, and geometry.plane create common primitives.
- geometry.cartesianCurve and geometry.parametricSurface create sampled geometry.
- geometry#upload uploads a returned geometry's active CPU or WebAssembly-backed data.