[vtkusers] Move STL model and colormap it

Cory Quammen cory.quammen at kitware.com
Thu Feb 27 00:53:54 EST 2014


Yes it is possible.

To read an STL file, see this example:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadSTL

To change the position of the camera:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/vtkCamera

Computing the distance and applying a color map is a little bit more involved.

If you only need to generate an animation, it would be simpler to use
ParaView to do this. It will load an STL file, you can use the
Calculator filter to compute the distance of each point to the origin,
easily apply a color map, and save a rotation animation.

Cheers,
Cory

On Thu, Feb 27, 2014 at 12:12 AM, weifeng0715 <weifeng0715 at gmail.com> wrote:
> Nobody would like to help me ???
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Move-STL-model-and-colormap-it-tp5726112p5726126.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers


More information about the vtkusers mailing list