I think that we can't use a DataSetMapper for a volume but a vtkVolumeMapper.<br>i tried vtkUnstructuredGridVolumeMapper but it crashes.<br><br><br><br><div class="gmail_quote">2009/12/10 Jérôme <span dir="ltr"><<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>></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>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 'see' a volume (vtkImageData) like a mesh ('vtkPolyData') but also like a volumic mesh ('vtkUnstructuredGrid'). 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><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"><br></div></blockquote><br>
</blockquote></div><br>