Skip to content

rordenlab/vox-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vox-loader

The vox-loader is a NiiVue plugin that converts MagicaVoxel .vox volumes into NIfTI volumes. It uses the vox-reader library to parse vox files. This is designed to be a minimal loader to illustrate NiiVue plugin loader design. Note that for more complex formats you would want to set the spatial properties of the NIfTI header (pixdim, sform).

Example voxel-based monument

Local Development

To illustrate this library, vox2nii is a node.js converter that can be run from the command line:

git clone [email protected]:rordenlab/vox-loader.git
cd vox-loader
npm install
node ./src/vox2nii.js ./tests/testData/monu1.vox

Local Browser Development

You can also embed this loader into a hot-reloadable NiiVue web page to evaluate integration:

git clone [email protected]:rordenlab/vox-loader.git
cd vox-loader
npm install
npm run dev

Sample datasets

Alternative libraries

Two similar libraries are provided. Both are equally simple for node usage, but the vox-reader is a bit simpler for web usage.

About

MagicaVoxel loader plugin for NiiVue

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published