David,<br>You brought me into deep doubts (if plural exists for this noun...): I went back to vtkPolyData documentation (<a href="http://www.vtk.org/doc/nightly/html/classvtkPolyData.html#_details">http://www.vtk.org/doc/nightly/html/classvtkPolyData.html#_details</a>) and I noted that 0D, 1D and 2D cells are represented by separate vtkCellArray&#39;s. The flexibility you mention is better exposed in vtkUnstructuredGrid: <br>

<p><a class="el" href="http://www.vtk.org/doc/nightly/html/classvtkUnstructuredGrid.html" title="dataset represents arbitrary combinations of all possible cell types">&quot;vtkUnstructuredGrid</a> is a data object that is a concrete implementation of <a class="el" href="http://www.vtk.org/doc/nightly/html/classvtkDataSet.html" title="abstract class to specify dataset behavior">vtkDataSet</a>. <a class="el" href="http://www.vtk.org/doc/nightly/html/classvtkUnstructuredGrid.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a>
represents any combinations of any cell types. This includes 0D (e.g.,
points), 1D (e.g., lines, polylines), 2D (e.g., triangles, polygons),
and 3D (e.g., hexahedron, tetrahedron).&quot;.</p>Sorry for not confirming! Maybe a VTK developer could correct me if I misunderstood something...<br><br>Jerome<br><br><div class="gmail_quote">2009/12/11 David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Fri, Dec 11, 2009 at 4:45 AM, Jérôme &lt;<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>&gt; wrote:<br>

&gt; You are right, polydata is intended to describe 0D (vertices), 1D (lines)<br>
&gt; and 2D (polygons) cell. Tetrahedrons are the &quot;simplest&quot; 3D cells, such as<br>
&gt; triangles are the &quot;simplest&quot; 2D cells, but vtkPolyData cannot have 3D cells.<br>
&gt; However, a tetrahedron is composed of 4 vertices, 6 edges (lines) and 4<br>
&gt; triangles (polygons) that you can *represents* thanks to a vtkPolyData. when<br>
&gt; you render a tetrahedral mesh through a polydata, you don&#39;t &quot;see&quot; the<br>
&gt; tetrahedrons, but their bounds.<br>
&gt;<br>
&gt;<br>
&gt; Jerome<br>
<br>
</div>Jerome -<br>
<br>
I&#39;m not sure that is accurate - I believe the whole point of a<br>
polydata is that it is the most flexible data type in that it is the<br>
only one that DOES allow 3D cells. I&#39;d have to double check the VTK<br>
book on that, but maybe someone else can verify this? I&#39;ve been<br>
planing to add a brief description of each of these types to the wiki<br>
for a while so you may have motivated me to get around to it :)<br>
<br>
Thanks,<br>
<font color="#888888"><br>
David<br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>