How can I display nii.gz segmentation data into 3D model on website?

I tried to use three.js to display nii.gz images but it was a headache.

I don’t know what I did wrong so I tried another method which is generate the 3D model using python. I was using MyVi but there was too many errors.

I searched and read many thesis articles. Mostly, they only display their segmentation result on python. I need to do this on website though.

Is there any direct and simpler method to display nii.gz on website?

As mentioned, if python to javascript (I’m using React and Three.js) works, please tell me how to do it!

If not, please tell me what are solutions!!

Thanks