[vtkusers] Question: choose vertices on STL object
Sebastien Jourdain
sebastien.jourdain at kitware.com
Wed Jul 25 10:52:53 EDT 2018
You can use ParaView to inspect your model, but STL duplicate all points
for each faces. In order to get the proper interpolation, you will have to
merge those points.
Moreover, you will need to assign a field value for each point, then VTK
will be able to do the interpolation on each face of your model.
On Wed, Jul 25, 2018 at 3:16 AM Turner, Shruti <s.turner17 at imperial.ac.uk>
wrote:
> Hello,
>
>
>
> I’m new to VTK and I am trying to use it so that I can create a colour map
> on an object to represent some measured data with some interpolation. In
> real life I have an object with sensors in various locations. I have a 3D
> model of the object which I have imported into vtk as an STL file.
>
>
>
> I now want to assign the measured data to the relevant locations on the
> model, then I want to interpolate between the measured data points so every
> vertex has a value. I then want to have a colour scale dependent on the
> value of the vertex.
>
>
>
> I’m not sure how to go about this or if it’s possible. My specific queries
> are:-
>
>
>
> 1. Can I click on the model for it to give me the location of the
> nearest vertex to my mouse click? If so, how can I?
> 2. What is the best way to interpolate between the known measurements?
> I don’t need each value across the mesh, only the final colours – would it
> be better to assign colours to the known points and then interpolate colour
> between them without doing the numbers?
>
>
>
> Many thanks,
>
> Shruti
> _______________________________________________
> 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/20180725/a8d83657/attachment.html>
More information about the vtkusers
mailing list