<div dir="ltr">Set cutter.GenerateCutScalarsOff()<br><br>and <br><br>Actor.GetProperty().SetDiffuseColor(color)<br>Actor.GetProperty().SetDiffuse(0.8) Actor.GetProperty().SetSpecular(0.3)<br> Actor.GetProperty().SetSpecularPower(20)<br>
Actor.GetProperty().SetRepresentationToSurface()<br><br>Jothy<br><br><div class="gmail_quote">On Fri, Mar 26, 2010 at 10:32 AM, Jothybasu K Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.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 dir="ltr">Instead of using Clipper use vtkCutter, that will give you a contour not half sphere.<br>
<br>Jothy<br><br><div class="gmail_quote">On Thu, Mar 25, 2010 at 10:14 PM, Scott Johnson <span dir="ltr"><<a href="mailto:Scott.Johnson@neuwave.com" target="_blank">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">Hi Folks,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I’m looking for a pointer.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I’m trying to display a resliced image, either axial,
coronal, or sagital and then display a contour representing the same plane
cutting through a polygonal shape. In my current example I have created a
sphere which intersects some of the image slices. As I scroll through the
slices I expect to see circles where the slice intersects the sphere.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Right now I have created a SphereSource -> ClipPolyData
-> PolyDataMapper -> Actor. The ClipPolyData has a plane as the
clip function.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">For the images I have ImageReslice ->
ImageMapToWindowLevelColors -> ImageActor</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Both of these actors are connected to a Renderer and added
to a RenderWindow.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">What I get is a slice and half of a sphere floating over
it. I can’t get the circle to be reflected on the image. I’ve
also tried to use an ImageViewer2 for the display to no avail.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">My original plan was to sync the plane definitions in the
ImageReslice and the clipping plane, but I can’t get past this point.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">This seems much more difficult than it needs to be. Is
there a simpler way?</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>
<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>
</blockquote></div><br></div>