<div dir="ltr">Divya,<div><br></div><div style>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.</div>
<div style><br></div><div style>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.</div><div style><br></div><div style>Hope this helps,</div>
<div style>Cory</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 16, 2013 at 2:26 AM, Divya <span dir="ltr"><<a href="mailto:divya@triassicsolutions.com" target="_blank">divya@triassicsolutions.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Dear All,<br>
<br>
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.<br>
<br>
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. <br>
<br>
Is there a way to implement this in VTK? Also is there a way to get
the points in the last modified region?<br>
<br>
Thanks in advance!<span class="HOEnZb"><font color="#888888"><br>
<div>-- <br>
<br>
<font color="#262626" face="calibri,sans serif,arial">
<div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="2" valign="top" width="230"><span style="line-height:100%"><font color="#262626" face="calibri,sans serif,arial">Regards,<br>
<font color="#5C83B4"><b>DIVYA SADANANDAN<br>
Software Engineer</b></font><br>
Triassic Solutions Pvt. Ltd.<br>
<a href="tel:%28%2B91%29%20471%202700050" value="+914712700050" target="_blank">(+91) 471 2700050</a> (Office)<br>
<a href="tel:7736382699" value="+17736382699" target="_blank">7736382699</a> (Mobile)</font></span></td>
</tr>
<tr>
<td valign="top" width="100%"><a href="http://www.triassicsolutions.com" target="_blank"><img src="cid:part1.05020009.05090101@triassicsolutions.com" border="0"></a></td>
</tr>
<tr>
<td><span style="line-height:75%"><font color="#1F497D" face="calibri,sans serif,arial"><br>
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.</font></span><br>
<span><font color="#33CC00" face="calibri,sans serif,arial">+ Please consider
our environment before printing this e-mail.</font></span></td>
</tr>
</tbody>
</table>
</div>
</font></div>
</font></span></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Cory Quammen<div>Research Associate</div><div>Department of Computer Science</div><div>The University of North Carolina at Chapel Hill</div>
</div>