<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Cory,<br>
<br>
I am able to add colors to the object, but once the
vtkButterflySubdivisionFilter is applied, thousands of additional
points are created, when the new points are added, it adds colors
which were not specified.<br>
Since I need to follow a predefined color scheme, this output is not
the desired one.<br>
<br>
How can i make the new points obtained after the SubdivisionFilter
to also take the initial color. I am using InsertTuple3 function to
add color to each of the points before applying the
vtkButterflySubdivisionFilter.<br>
<br>
Thanks,<br>
Divya<br>
<br>
<div class="moz-cite-prefix">On 4/16/2013 6:44 PM, Cory Quammen
wrote:<br>
</div>
<blockquote
cite="mid:CANmPiKCE894EJKUntmXq-1f0N0=RiOz3YR65Utkz4HeyO8UmtA@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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><br>
</div>
</font></div>
</font></span></div>
<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
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
moz-do-not-send="true"
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 moz-do-not-send="true"
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>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<br>
<font size="2" color="#262626" face="calibri,sans serif,arial">
<div><br>
</div>
</font></div>
</body>
</html>