<div dir="ltr"><div>Look at wiki examples.<br><br>For example the following might work for you.<br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/SurfaceFromUnorganizedPointsWithPostProc">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/SurfaceFromUnorganizedPointsWithPostProc</a><br>
<br></div><div>If you know that figure you are trying to reconstruct is convex, you might use vtkDelaunay3D, to get 3d model of the object and then run it through surface filter.<br><br>Finally you can recreate surface from contours (define triangles between points ) yourself which seems to be trivial assuming contours are either convex polygons or single point.<br>
<br><br></div><div>Regards,<br></div><div> Alex<br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 24, 2013 at 2:48 PM, Jean-Paul Aben <span dir="ltr"><<a href="mailto:jeanpaul.aben@gmail.com" target="_blank">jeanpaul.aben@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear All,</div><div> </div><div>I have multiple contours, where the points are 3D coordinates (floating). Each 3D contour is within one plane. The last contour exist of one 3D point. The contours represent a kind of a half cone.</div>
<div> </div><div>I want to genarte one surface of them. I tried to use solve it with the <span style="font-family:"Calibri","sans-serif";font-size:11pt">vtkVoxelContoursToSurfaceFilter. However, its difficult to have different z-distance between the contours. Furthmore, the surface looks stramge when closing the "cone".</span></div>
<div><span style="font-family:"Calibri","sans-serif";font-size:11pt"></span> </div><div><span style="font-family:"Calibri","sans-serif";font-size:11pt">I assume there would be a better way, directly in scalar. Using the <span style="font-family:"Calibri","sans-serif";font-size:11pt">vtkVoxelContoursToSurfaceFilter makes first a 3D voxel volume and then extracts the contour.</span></span></div>
<div><span style="font-family:"Calibri","sans-serif";font-size:11pt"><span style="font-family:"Calibri","sans-serif";font-size:11pt"></span></span> </div><div><span style="font-family:"Calibri","sans-serif";font-size:11pt"><span style="font-family:"Calibri","sans-serif";font-size:11pt">I hope someone could help me with this. I simple C++ code would be very helpfull, since i just started to use vtk.</span></span></div>
<div><span style="font-family:"Calibri","sans-serif";font-size:11pt"><span style="font-family:"Calibri","sans-serif";font-size:11pt"></span></span> </div><div><span style="font-family:"Calibri","sans-serif";font-size:11pt"><span style="font-family:"Calibri","sans-serif";font-size:11pt">Kind regards,</span></span></div>
<div><span style="font-family:"Calibri","sans-serif";font-size:11pt"><span style="font-family:"Calibri","sans-serif";font-size:11pt">Jean-Paul</span></span></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>