models and NRRD files exported from Slicer don't align in vtkjs/itk

I added a flipping i and j hack to the demo. I do:

new_origin = indexToWorld(i_max, j_max, 0);
new_spacing  = (-spacing_i, -spacing_j, spacing_k)

and everything aligns and looks anatomically correct.

Somewhere there’s a coordinate system problem. As I said, the NRRD file is already LPS.