Re: Add colour and interpolate an STL file with VTK.JS
"Turner, Shruti" <[email protected]> Wed, 27 Feb 2019 22:07:39 +0000
| Newsgroups | gmane.comp.lib.vtk.user |
|---|---|
| Message-ID | <AM6PR06MB5320EA9C6A83736BA7407F54B0740@AM6PR06MB5320.eurprd06.prod.outlook.com> |
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 <[email protected]> Date: 27/02/2019 21:57 (GMT+00:00) To: "Turner, Shruti" <[email protected]> Cc: [email protected] 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. _______________________________________________ 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://vtk.org/mailman/listinfo/vtkusers