<div dir="ltr">What would be the best vtk class to create a 3D surface out of instances of vtkContourWidget? I am using vtkVoxelContoursToSurfaceFilter [1], but about 50% of the times, the resulting surface <font color="#000000" face="sans-serif"><span style="line-height:19.049999237060547px">does not match with the spatial position of the original point set and is shifted slightly (image attached). </span></font><div>
<br></div><div>vtkContourWidget is a popular class and I am sure there should be a reliable way to cast a surface out of contours. Would you please advise me? <div><font color="#000000" face="sans-serif"><span style="line-height:19.049999237060547px"><br>
</span></font><div><div>[1] <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ContoursToSurface">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ContoursToSurface</a><br><div><br></div><div><br><br><div class="gmail_quote">
---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Sam Raby</b> <span dir="ltr"><<a href="mailto:rabysam28@gmail.com">rabysam28@gmail.com</a>></span><br>Date: Fri, Apr 4, 2014 at 4:20 PM<br>
Subject: Fwd: Creating a iso surface out of contours (inaccuracy)<br>To: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br><br><br><div dir="ltr">
Let me rephrase my question:<div>I have, let's say, 5 manual contours. They are drawn manually on 5 consecutive slices, and I simply want to generate an iso surface from these 5 contours. I have done this using vtkVoxelContoursToSurfaceFilter<span style="line-height:1.2em;font-size:10.399999618530273px"> </span>class, but I was wondering whether this is the right class to do this? The problem is, as shown in the image attached, sometime I undergo some inaccuracy. Thanks for the help.</div>
<span class=""><font color="#888888">
<div><br></div><div>-S</div><br></font></span><div class="gmail_quote"><div class="">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Sam Raby</b> <span dir="ltr"><<a href="mailto:rabysam28@gmail.com" target="_blank">rabysam28@gmail.com</a>></span><br>
</div><div class="">
Date: Thu, Mar 13, 2014 at 10:41 AM<br>Subject: Fwd: Creating a iso surface out of contours (inaccuracy)<br>To: "<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
<br><br><div dir="ltr"><div>any idea about my email below, on why the iso surface somtimes does not match with the contours? (like the image attached)</div><div><br></div><div>thanks<br><br></div><div><div><div class="gmail_quote">
---------- Forwarded message ----------<br>
From: <b class="gmail_sendername">Sam Raby</b> <span dir="ltr"><<a href="mailto:rabysam28@gmail.com" target="_blank">rabysam28@gmail.com</a>></span><br>Date: Tue, Mar 11, 2014 at 11:13 PM<br>Subject: Creating a iso surface out of contours (inaccuracy)<br>
To: "<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br><br><br><div dir="ltr"><div class="gmail_quote"><div dir="ltr">
Hi,<div><br></div><div>
I am using the following VTK example to create surface out of my contours:</div><div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ContoursToSurface" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ContoursToSurface</a><br>
</div><div><br></div><div>The code seems to be working OK, but sometimes, not always, the generated iso surface is off a little bit. <br></div><div><br></div><div>Every time that I render the iso surface I also render the original contours next to the surface. Please see the image attached which shows that the surface is not precisely representing the contours.</div>
<div><br></div><div>As shown in the figure, the generated surface which is in cyan is a bit off compared to the black and white lines which are the contours. </div>
<div><br></div><div>When this type of inaccuracy takes place, I try to modify the contours and then generate the surface again, and sometimes I see that the generated surface will be magically corrected and become accurate. </div>
<div><br></div><div>Would you let me know what you think about this issue?</div><div><br></div><div>thanks</div><div><br></div><div><br></div></div>
</div><br></div>
</div><br></div></div></div>
</div></div><br></div>
</div><br></div></div></div></div></div></div>