Thanks, I converted to ijk coordinates. Now one more question: <br><br>&quot;The contours are input as <a href="http://www.vtk.org/doc/nightly/html/classvtkPolyData.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips" target="_blank">vtkPolyData</a>, with the contours being polys in the <a href="http://www.vtk.org/doc/nightly/html/classvtkPolyData.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips" target="_blank">vtkPolyData</a>.&quot;<br>

<br>If my vtkPolyData is lines, most I convert lines to polys?<br><br><div class="gmail_quote">2011/2/4 Lars Friedrich Lars <span dir="ltr">&lt;<a href="mailto:lars-friedrich@gmx.net">lars-friedrich@gmx.net</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Andrej,<br>
<br>
it&#39;s possibly right that all input points are double-casted integers. However, the example nicely shows how to overcome the primary limitation of vtkVoxelContoursToSurfaceFilter by adapting the underlying voxel-spacing and converting to ijk-coordinates first, and then back-transforming the output mesh to world coordinates again.<br>

<br>
Have a closer look on the code blocks statring with these comments:<br>
<br>
// Convert to ijk coordinates for the contour to surface filter<br>
<br>
and<br>
<br>
// Rescale the output back into world coordinates and center it<br>
<br>
.<br>
<br>
HTH,<br>
lars<br>
<br>
-------- Original-Nachricht --------<br>
&gt; Datum: Fri, 4 Feb 2011 16:50:42 +0300<br>
&gt; Von: Andrej Gluhov &lt;<a href="mailto:realandron@gmail.com">realandron@gmail.com</a>&gt;<br>
&gt; An: David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;, vtkusers &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; Betreff: Re: [vtkusers] How to create 3d surface from vtkPolyData?<br>
<div class="im"><br>
&gt; Yes, I looked. In this example all points are integer values in double<br>
&gt; format. My contours have points with double value...<br>
&gt;<br>
&gt; vtkVoxelContoursToSurface description:<br>
&gt;<br>
&gt; create surface from contours<br>
&gt;<br>
</div>&gt; vtkVoxelContoursToSurfaceFilter&lt;<a href="http://www.vtk.org/doc/nightly/html/classvtkVoxelContoursToSurfaceFilter.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkVoxelContoursToSurfaceFilter.html</a>&gt;is<br>

<div class="im">&gt; a filter that takes contours and produces surfaces. There are some<br>
&gt; restrictions for the contours:<br>
&gt;<br>
&gt; š š- The contours are input as<br>
</div>&gt; vtkPolyData&lt;<a href="http://www.vtk.org/doc/nightly/html/classvtkPolyData.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkPolyData.html</a>&gt;,<br>
<div class="im">&gt; š šwith the contours being polys in the<br>
</div>&gt; vtkPolyData&lt;<a href="http://www.vtk.org/doc/nightly/html/classvtkPolyData.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkPolyData.html</a>&gt;<br>
&gt; š š.<br>
&gt; š š- The contours lie on XY planes - each contour has a constant Z<br>
<div class="im">&gt; š š- The contours are ordered in the polys of the<br>
</div>&gt; vtkPolyData&lt;<a href="http://www.vtk.org/doc/nightly/html/classvtkPolyData.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkPolyData.html</a>&gt;such<br>
<div><div></div><div class="h5">&gt; that all contours on the first (lowest) XY plane are first, then<br>
&gt; š šcontinuing in order of increasing Z value.<br>
&gt; š š- *The X, Y and Z coordinates are all integer values.*<br>
&gt; š š- The desired sampling of the contour data is 1x1x1 - Aspect can be<br>
&gt; used<br>
&gt; š što control the aspect ratio in the output polygonal dataset.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2011/2/4 David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;<br>
&gt;<br>
&gt; &gt; 2011/2/4 Andrej Gluhov &lt;<a href="mailto:realandron@gmail.com">realandron@gmail.com</a>&gt;:<br>
&gt; &gt; &gt; Hello.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I have series of contours in vtkAppendPolyData. How to create surface?<br>
&gt; &gt; &gt; vtkVoxelContoursToSurface needs integer points!<br>
&gt; &gt;<br>
&gt; &gt; What do you mean it needs integer points? Have you looked at this<br>
&gt; &gt; example<br>
&gt; &gt; <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>
&gt; &gt; ?<br>
&gt; &gt;<br>
&gt; &gt; David<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; ó õ×ÁÖÅÎÉÅÍ,<br>
&gt; áÎÄÒÅÊ.<br>
&gt; Best regards, Andrew<br>
<br>
</div></div><font color="#888888">--<br>
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit<br>
gratis Handy-Flat! <a href="http://portal.gmx.net/de/go/dsl" target="_blank">http://portal.gmx.net/de/go/dsl</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>ó õ×ÁÖÅÎÉÅÍ,<br>áÎÄÒÅÊ.<br>Best regards, Andrew<br>