[vtkusers] unstructured grid + tetrahedrons

Baliki B. balikivtk at gmail.com
Thu Dec 10 08:44:14 EST 2009


I think that we can't use a DataSetMapper for a volume but a
vtkVolumeMapper.
i tried vtkUnstructuredGridVolumeMapper but it crashes.



2009/12/10 Jérôme <jerome.velut at gmail.com>

> Hi,
> 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!).
>
> 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.
>
> How can you see the tetrahedron? By using a
> vtkUnstructuredGripVolumeMapper, but my knowledge stop here!
>
> HTH
> Jerome
>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091210/b36884c7/attachment.htm>


More information about the vtkusers mailing list