<div>vtkExtractVOI gives different results on vtkContourFilter and vtkVolumeRayCastMapper.</div>
<div>especially the SetVOI&nbsp;</div>
<div>&nbsp;</div>
<div>SetVOI carries arguments in a manner as below:</div>
<div>&nbsp;</div>
<div>SetVOI&nbsp;a b c d e f&nbsp;( a...f &nbsp;=&nbsp;integer)</div>
<div>&nbsp;</div>
<div>the&nbsp;&quot;a&quot; actually affect the output.</div>
<div>&nbsp;</div>
<div>in vtkContourFilter, when the part was &quot;cut&quot; off, the postion of the cut-off part will be reserve</div>
<div>&nbsp;</div>
<div>however in vtkVolumeRayCastMapper, it does not reserve the space of the cut-off part, and pushes the whole object to left (simply because the left cut-off part is no more there&nbsp;) </div>
<div>&nbsp;</div>
<div>so it make the volumn rendering content can not &quot;register&quot; with iso-surface rendering. i know the cause of the problem, but i haven't find the solution yet.... maybe there are some other implementation on this.... 
</div>
<div>&nbsp;</div>
<div>thank you for your advice.</div>
<div>&nbsp;</div>
<div>regards</div>
<div>&nbsp;</div>
<div>Yours</div><span>
<div>Pan</div></span><br><br>
<div><span class="gmail_quote">On 9/6/05, <b class="gmail_sendername">Day, Robert</b> &lt;<a href="mailto:Robert.Day@health.wa.gov.au">Robert.Day@health.wa.gov.au</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Its only a guess, based on looking at the picture and no code, and I don't use volumes much.<br><br>I'd say the origin for the volume data set is not the same as the surface.&nbsp;&nbsp;As I recall, volumes have the origin at one corner, whereas the CT may well have the origin at the isocentre of the scanner.&nbsp;&nbsp;So the surface polydata will inherit this origin, but the volume may well have its origin at the corner.
<br><br>It would be easier to guess with some code...<br><br>Rob.<br>--<br>Robert Day&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ph&nbsp;&nbsp;+61 8 9224 3227<br>Project Bioengineer&nbsp;&nbsp; fax +61 8 9224 1138<br>Royal Perth Hospital&nbsp;&nbsp;<a href="mailto:robert.day@health.wa.gov.au">
robert.day@health.wa.gov.au</a><br><br>&gt; -----Original Message-----<br>&gt; From: Peter [mailto:<a href="mailto:meancity@gmail.com">meancity@gmail.com</a>]<br>&gt; Sent: Saturday, 27 August 2005 2:19 PM<br>&gt; To: <a href="mailto:vtkusers@vtk.org">
vtkusers@vtk.org</a><br>&gt; Subject: [vtkusers] volume rendering content does not fit into the<br>&gt; isosurface<br>&gt;<br>&gt;<br>&gt; Dear All,<br>&gt;<br>&gt; i have a question, i am doing some rending for a 3D object.
<br>&gt;<br>&gt; first i did isosurface rendering for the objects.<br>&gt; then i did volume rendering.<br>&gt;<br>&gt; these two rending process in same file, but when i run the script,<br>&gt; the volume rendering content does not fit into the isosurface, i tried
<br>&gt; to find the problem, but i still can't figure it out by far. i suppose<br>&gt; the volume rendering content should exactly fit into the isosurface.<br>&gt; but the result showed that there are just some part of<br>
&gt; overlapping.....<br>&gt;<br>&gt; so can someone out there to help me out on this issue...<br>&gt;<br>&gt; thank you in advance,<br>&gt;<br>&gt; Yours<br>&gt; Pan<br>&lt;snip&gt;<br></blockquote></div><br>