[vtkusers] Add colour and interpolate an STL file with VTK.JS
Turner, Shruti
s.turner17 at imperial.ac.uk
Wed Feb 27 17:07:39 EST 2019
Thank you for the explanation. I'm sorry, if I'm missing something obvious but this is my first time doing something like this.
What I need to achieve is interpolation between the points with colour to give a pressure map across the entire model.
What you have said makes sense, I'm just not sure how to change my code in order to achieve what I want to achieve..
Thanks,
Shruti.
-------- Original message --------
From: Sebastien Jourdain <sebastien.jourdain at kitware.com>
Date: 27/02/2019 21:57 (GMT+00:00)
To: "Turner, Shruti" <s.turner17 at imperial.ac.uk>
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] Add colour and interpolate an STL file with VTK.JS
That looks correct (respecting what you are asking vtk to draw), you seems to only have data on a couple of them where you see variation of color within some triangles.
The rest remain a single color as those values are the same and since you did not reversed the hue range, those values are probably 0.
So interpolating from 0 to 0 give you a solid color.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20190227/22268310/attachment.html>
More information about the vtkusers
mailing list