[vtkusers] Color the 3D object wrt the time when the points were added
Cory Quammen
cquammen at cs.unc.edu
Tue Apr 16 09:14:33 EDT 2013
Divya,
Here's an outline of a general approach you might use. You could create a
scalar field for your 3D object that contains the time at which the point
was added. Then you can use a transfer function that you use to color the
3D object according to those scalars. By appropriately defining the
controls points of the transfer function, you can color the objects added
in the last twenty seconds one color and the rest of the points another
color.
The only downside of this approach is that you might have a band of color
across a surface cell if that cell is made up of old and new points.
Hope this helps,
Cory
On Tue, Apr 16, 2013 at 2:26 AM, Divya <divya at triassicsolutions.com> wrote:
> Dear All,
>
> I am working on an application where I am adding 1 point at a time and the
> 3D object is re-rendered. I need to color this 3D object with respect to
> the time when the points were added.
>
> The final object is rendered after the vtkButterflySubdivisionFilter. I
> have implemented a timer with an interval of 20 secs, and I need to change
> the colors of the 3D object every 20 secs, ie : The region that was created
> within the last 20 secs should be rendered in 'red' color, and the region
> created in the previous 20secs in another color and so on.
>
> Is there a way to implement this in VTK? Also is there a way to get the
> points in the last modified region?
>
> Thanks in advance!
> --
>
> Regards,
> *DIVYA SADANANDAN
> Software Engineer*
> Triassic Solutions Pvt. Ltd.
> (+91) 471 2700050 (Office)
> 7736382699 (Mobile) <http://www.triassicsolutions.com>
> Disclaimer: This e-mail contains confidential information intended solely
> for the intended recipient. If you are not the intended recipient, please
> notify the sender by e-mail and delete this email permanently from your
> records. Do not copy or distribute this e-mail and any such actions are
> unlawful. Except where this email is sent in the usual course of business,
> the views expressed in this email are those of the sender. Triassic
> Solutions Pvt. Ltd. accepts no responsibility for any indirect damage or
> loss suffered by reason of inaccuracy or incorrectness of the information
> in this email.
> + Please consider our environment before printing this e-mail.
>
> _______________________________________________
> 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
>
>
--
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130416/e906aeca/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpg
Size: 6447 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130416/e906aeca/attachment.jpg>
More information about the vtkusers
mailing list