<div dir="ltr">How do you position your contour actors over the imageactor, are you using setPosition for the actors. Because sometimes the actor are hidden behind the images.<br><br>Basically a z-buffer problem.<br><br>Thanks,<br>
<br>Jothy<br><br><div class="gmail_quote">On Fri, Apr 9, 2010 at 2:05 PM, Scott Johnson <span dir="ltr"><<a href="mailto:Scott.Johnson@neuwave.com">Scott.Johnson@neuwave.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Yes, that’s the general idea. I want to cut the ROI
with the presented image plane creating a contour and superimpose it over the
resliced image.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thanks</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> --
Scott</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">P.S. In a previous life I worked for Philips on the
Pinnacle radiation therapy planning system, so I’m familiar with what Eclipse
does.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Jothybasu K
Selvaraj [mailto:<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>] <br>
<b>Sent:</b> Friday, April 09, 2010 3:20 AM<div><div></div><div class="h5"><br>
<b>To:</b> Scott Johnson<br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> Re: [vtkusers] Filling vtkCutter output</div></div></span></p>
</div><div><div></div><div class="h5">
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">Do you want to do like the Eclipse (varian) planning
system does??</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">(give me sometime to get back to you)</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Thanks,</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;">Jothy</p>
</div>
<div>
<p class="MsoNormal">On Thu, Apr 8, 2010 at 9:16 PM, Scott Johnson <<a href="mailto:Scott.Johnson@neuwave.com" target="_blank">Scott.Johnson@neuwave.com</a>>
wrote:</p>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thanks for the attempt Jothy. I
think I need a little more guidance. I’m not able to decipher
everything that vtkLinearExtrusionFilter can do.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">vtkLinearExtrusionFilter seems to
extrude in 3 dimensions. I only need to extrude in 2D to fill the
resulting contour after I cut the sphere with a plane. Here are the
settings I used:</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";"> extrude =
vtkLinearExtrusionFilter::New();</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
extrude->SetInputConnection(_cutter->GetOutputPort());</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
extrude->CappingOn();</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
extrude->SetExtrusionTypeToPointExtrusion();</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";"> extrude->SetExtrusionPoint(145.0,
222.0, 35.0);</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">The extrusion point I set is the center
of the sphere.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I’ve actually got 2 concentric
spheres and when I use this I get some weird effects. (I’ll attach
a picture.) The red sphere is the outside and it seems to be attempting
to make some kind of connection to the extrusion point. The green sphere
comes closer, but extrudes out as well as into the center. Finally, the
extrusion doesn’t fill the center of either sphere.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">The picture shows an Axial, Sagittal,
and Coronal slice as well as a rendering.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I also get a series of errors reading:</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">ERROR: In ..\..\Graphics\vtkLinearExtrusionFilter.cxx,
line 133 vtkLinearExtrusionFilter[06C80510: No data to extrude!</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">That could be the issue as well. I
did _cutter->Update() prior to connecting it to the linear extrusion filter.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thanks</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">
-- Scott</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
Jothybasu K Selvaraj [mailto:<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>] <br>
<b>Sent:</b> Thursday, April 08, 2010 1:38 PM </span></p>
<div>
<p class="MsoNormal"><span style="font-size: 10pt;"><br>
<b>To:</b> Scott Johnson<br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> Re: [vtkusers] Filling vtkCutter output</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;">What
about using<span style="font-size: 10pt;"> vtkLinearExtrusionFilter for filling
these polygons? </span></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt;"><br>
<br>
Let me know if it works Scott.<br>
<br>
Thanks,<br>
<br>
Jothy</span></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal">On
Thu, Apr 8, 2010 at 5:27 PM, Scott Johnson <<a href="mailto:Scott.Johnson@neuwave.com" target="_blank">Scott.Johnson@neuwave.com</a>>
wrote:</p>
<div>
<div>
<p class="MsoNormal">Howdy,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I’ve
got a vtkSphereSource cut by a vtkPlane using vtkCutter. This gives me
the outline of a circle which I’m overlaying on my images. Is there
a way for me to fill the circle with color?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">
-- Scott</p>
<p class="MsoNormal"> </p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><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></p>
</div>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"> </p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>