Home

Awesome

NiiVue voxels to mesh

A basic example of simplifying meshes. Open the live demo.

Comparisons

This repository includes different ports of Sven Forstmann's C++ Fast Quadric Mesh Simplification. The table below shows the time to simplify the mni152_2009.mz3 mesh to 10% of its input size.

MethodFilesSize (kb)Speed (ms)
nii2meshnii2mesh.js213650
WASM C++a.js200800
mXrapmesh-ta, quadric-mesh-simplification, wrapped_typed_array652100
NiiVuesimplify152150

Neuroimaging meshes do not use UV mapping. For simplification of meshes with UV mapping, see this live demo.

For Developers

You can serve a hot-reloadable web page that allows you to interactively modify the source code.

git clone https://github.com/niivue/niivue-simplify
cd niivue-simplify
npm install
npm run dev

Links