<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Bill,<div><br></div><div>Thanks. The example is helpful, but doesn't show how to extract individual actors. The vtkActor I display (after discretemarchingcubes) is a single actor that covers all the labeled volumes. Each component is colored separately because I use a color table.</div><div><br></div><div>I would now like the user to click on a single component volume and return an actor corresponding to that label. Is there a way to do that? I have already tried creating multiple actors with separate call to discretemarchingcubes for each individual label. However, that is much slower than just passing a range of labels with one single instance of DMC.</div><div><br></div><div>Thanks,</div><div>Thommen<br><br><hr id="stopSpelling">Date: Mon, 16 May 2011 23:31:53 -0400<br>Subject: Re: [vtkusers] Multiple actors using discretemarchingcubes<br>From: bill.lorensen@gmail.com<br>To: thkorah@hotmail.com<br>CC: vtkusers@vtk.org<br><br>Look at this example. It uses vtkThreshold to extract the models using cell data:<br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateModelsFromLabels" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateModelsFromLabels</a><br>
<br><div class="ecxgmail_quote">On Mon, May 16, 2011 at 11:22 PM, Thommen Korah <span dir="ltr">&lt;<a href="mailto:thkorah@hotmail.com">thkorah@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="ecxgmail_quote" style="padding-left:1ex">




<div>
I am able to use vtkDiscreteMarchingCubes to generate differently colored and labeled volumes. At the end of the visualization pipeline, I get a single vtkActor representing each labeled volume. How can I get separate vtkActors for each component.<div>
<br></div><div>I understand that I can call discrete marching cubes on each label separately and store the resulting actor. I was wondering if there was a more correct way to extract the actors separately.</div><div><br></div>
<div>Thanks.</div>                                               </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></div>                                               </body>
</html>