[vtkusers] using vtkUnstructeredGrid for volume rendering?

Amy Squillacote ahs at cfdrc.com
Tue Feb 5 10:02:54 EST 2008


Hello Yuri,

If you are using VTK 5.0 or CVS, there is support for rendering 
unstructured grids. (See subclasses of vtkUnstructuredGridVolumeMapper: 
http://www.vtk.org/doc/release/5.0/html/a02157.html.) However, those 
mappers generally require your unstructured grid to be composed of 
tetrahedral cells, not just points. You could try using vtkDelaunay3D 
for this.

Another option would be to sample your data onto a vtkImageData using 
vtkProbeFilter. (See 
http://www.vtk.org/doc/release/5.0/html/a01905.html). Then volume render 
the resulting vtkImageData.

- Amy

Yuri Ivanov wrote:
> Hello; 
>
> I have a vtkUnstructeredGrid which contains in some points and colour values
> . I want to do volume rendering but i couldn't do that. I know that there
> must be image data to do this. But i only have x,y,z and colour values. Is
> there any way to use vtkUnstructeredGrid for volume rendering, or any other
> way to do this? 
>
> Thank you in advance..
>   

-- 
Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CDF Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805





More information about the vtkusers mailing list