Hi,
I am pretty new with vtk.js
I am reading a poly data using the tube filter example application but I need to also render the points as spheres. A function RenderPointsAsSpheres() is available in VTK to do so, and also in paraview there is an option in point geometry to render points as spheres with certain scalar properties. How do I do the same in vtk.js?
Thank you
The current WebGL implementation does not support it but it is very likely that the WebGPU one will.
Otherwise as an alternative, you might be able to use the SphereMapper.
I have used tube viewer example application to read .vtp files, if you’re suggesting me sphere mapper how do I pass the input points from .vtp file to be converted to spheres? And how do I incorporate the sphere mapper functions in the tube viewer code?
I’m new and struggling with this.
Thanks a lot in advanced!!