<div dir="ltr"><div>Do you want to do like the Eclipse (varian) planning system does??</div>
<div> </div>
<div>(give me sometime to get back to you)</div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<div>Jothy<br><br></div>
<div class="gmail_quote">On Thu, Apr 8, 2010 at 9:16 PM, Scott Johnson <span dir="ltr">&lt;<a href="mailto:Scott.Johnson@neuwave.com">Scott.Johnson@neuwave.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">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: #1f497d"> </span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">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: #1f497d"> </span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 10pt; FONT-FAMILY: &#39;Courier New&#39;">    extrude = vtkLinearExtrusionFilter::New();</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 10pt; FONT-FAMILY: &#39;Courier New&#39;">    extrude-&gt;SetInputConnection(_cutter-&gt;GetOutputPort());</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 10pt; FONT-FAMILY: &#39;Courier New&#39;">    extrude-&gt;CappingOn();</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 10pt; FONT-FAMILY: &#39;Courier New&#39;">    extrude-&gt;SetExtrusionTypeToPointExtrusion();</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 10pt; FONT-FAMILY: &#39;Courier New&#39;">    extrude-&gt;SetExtrusionPoint(145.0, 222.0, 35.0);</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">The extrusion point I set is the center of the sphere.</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">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: #1f497d"> </span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">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: #1f497d"> </span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">I also get a series of errors reading:</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">ERROR:  In ..\..\Graphics\vtkLinearExtrusionFilter.cxx, line 133 vtkLinearExtrusionFilter[06C80510: No data to extrude!</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">That could be the issue as well.  I did _cutter-&gt;Update() prior to connecting it to the linear extrusion filter.</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Thanks</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">                                -- Scott</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<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 
<div class="im"><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></span>
<p></p></p></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? 
<div>
<div></div>
<div class="h5"><br><br>Let me know if it works Scott.<br><br>Thanks,<br><br>Jothy<br><br></div></div></span>
<p></p>
<div>
<div></div>
<div class="h5">
<div>
<p class="MsoNormal">On Thu, Apr 8, 2010 at 5:27 PM, Scott Johnson &lt;<a href="mailto:Scott.Johnson@neuwave.com" target="_blank">Scott.Johnson@neuwave.com</a>&gt; 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></p></div></div></div></blockquote></div><br></div>