[vtkusers] Create PolyData in vtk.js

Sebastien Jourdain sebastien.jourdain at kitware.com
Wed Jul 18 10:26:26 EDT 2018


Your scalars should remain what ever they truly are (Float32/64,
Int8/16/32, Uint8/16/32)...
Then you need to tell the mapper which array to color by. You can look at
that example which allow you to dynamically pick the array to color by
https://kitware.github.io/vtk-js/examples/GeometryViewer.html
https://github.com/Kitware/vtk-js/blob/master/Examples/Applications/GeometryViewer/index.js#L280-L328


[image: example.jpg]
In fact if you want to contribute your reader to vtk.js you could directly
use ParaViewGlance https://kitware.github.io/paraview-glance/

HTH,

Seb

On Wed, Jul 18, 2018 at 7:19 AM marf <marvin.huber at basf.com> wrote:

> Ok nevermind, a lot of this became clear now and even though I can't really
> articulate anything about it yet, I understand all this stuff a lot better
> I
> guess and will be able to move forward
>
>
>
> --
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180718/3ca4d980/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.jpg
Type: image/jpeg
Size: 405546 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180718/3ca4d980/attachment-0001.jpg>


More information about the vtkusers mailing list