Hi,<br>A vtkDatasetMapper is a generic mapper that, according to its name, maps vtkDataSet. You will find that vtkImageData, vtkPolyData, vtkUnstructuredGrid and a lot of other vtk data structures inherit from vtkDataSet. Basically, it means that vtkDataSetMapper will &#39;see&#39; a volume (vtkImageData) like a mesh (&#39;vtkPolyData&#39;) but also like a volumic mesh (&#39;vtkUnstructuredGrid&#39;). For instance, try to map a volume (mhd, dicom or vti) through a DataSetMapper: you will render only the grid of the external faces! (yes, try it, because I only assume that!).<br>
<br>By reading the doc, I saw that DataSetMapper has a vtkPolyDataMapper as member. It makes me thinking that this mapper maps *everything* has it was a polydata (*maybe* building explicit topology when it has to). And a polydata has no 3D cells such as in vtkUnstructuredGrid. This *could* explain the behaviour you described.<br>
<br>How can you see the tetrahedron? By using a vtkUnstructuredGripVolumeMapper, but my knowledge stop here!<br><br>HTH<br>Jerome<br><br><br><br><div class="gmail_quote">2009/12/10 Baliki B. <span dir="ltr">&lt;<a href="mailto:balikivtk@gmail.com">balikivtk@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;">Hi,<br><br>i have an unstructured grid (a file) which contains tetrahedrons.<br>I read the file with vtkUnstructuredGridReader.<br>
Then i use a vtkDataSetMapper but i  don&#39;t really get the tetrahedron but the boundary tringles.<br>
<br>What am i doing wrong?<br>How can i visualize it so that i can see the tetrahedrons?<br><br>(Sorry if my questions are &quot;stupid&quot;.)<br><br><br>
<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>