[vtkusers] Loading a .vtu file in vtkjs

marf marvin.huber at basf.com
Wed Jul 11 10:11:10 EDT 2018


Hello, maybe someone can help me. I'm currently trying to display a .vtu file
in my browser using vtkjs. I tried to follow the example for the 
PolyDataReader
<https://kitware.github.io/vtk-js/examples/PolyDataReader.html>  , but even
with adjusting stuff the best I could get was an error stating "No input"

I tried getting the .vtu from a server and having it locally. For both I
tried passing it as an ArrayBuffer through

reader.setInputArrayToProcess(0, fileArrayBuffer, 0);

and loading it through a url using

reader.setUrl('assets/model.vtu');


Any help or hints would be appreciated :-)
Marvin



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list