vtkRectilinearGridToTetrahedra: remember scalar field

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

vtkRectilinearGridToTetrahedra: remember scalar field

VTK - Users mailing list

Hi,

 

I am currently trying to generate a volume rendering of a 3D scalar field that I read in from an HDF5 file. The data structures within the file represent a rectilinear grid, though are stored in a complex fashion and not directly ‘importable’ into an array or other structure.

 

I am reading the data and pre-processing to build a vtkRectilinearGrid, which I then run through the vtkRectilinearGridToTetrahedra pipeline to build an unstructured grid which I then volume render. The original rectilinear grid has scalars (representing e.g. temperature, power, density) that I would like to preserve when making this conversion, so that I can apply colour/opacity to the volume based on this.

 

Is this something that is possible to conserve? I can see that it is possible to maintain the original voxel ID as a scalar in the new grid – should I just use this as an index to re-populate the scalar data in the new grid, or can I do it more directly? Or failing that, should I extend the conversion method to allow for transfer of the original scalar field?

 

Any help/advice is much appreciated.

 

 

Cheers

 

Murray

 

 


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers