Loading a .vtu file in vtkjs

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Loading a .vtu file in vtkjs

marf
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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Loading a .vtu file in vtkjs

marf
I would really really apprectiated any hint or workaround or whatever, I
realized there is an XMLUnstructuredGridLoader or something similar in the
real vtk, but apparently it has not been ported to vtkjs as of now



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers