Mesh and voxels¶

Voxel-based volumes and triangle-based meshes can exist together in the same scene.

In [1]:
from ipyniivue import NiiVue, ShowRender

nv = NiiVue()
nv.load_volumes([{"path": "../images/mni152.nii.gz"}])
nv.load_meshes([
        {"path": "../images/BrainMesh_ICBM152.lh.mz3", "rgba255": [128, 192, 255, 255]},
     ])
nv.opts.multiplanar_show_render = ShowRender.ALWAYS
nv.set_clip_plane(-0.1, 270, 0)
nv
Out[1]:
In [ ]:
 
In [ ]: