I understand how to load a .vti object in vtk.js, it goes something like this:
const reader = vtk.IO.Core.vtkHttpDataSetReader.newInstance({fetchGzip: true});
mapper.setInputConnection(reader.getOutputPort());
reader
.setUrl('https://kitware.github.io/vtk-js/data/volume/LIDC2.vti')
.then(() => reader.loadData())
.then(() => {
renderer.addActor(actor);
renderer.resetCamera();
renderer.getActiveCamera().azimuth(azimuth)
renderWindow.render();
});
How do I apply this method on a local .HDF5 file (more specific - HDF5 that contains a CT scan)?