[vtkusers] Imagedata/Uniformgrid non axis aligned

John Biddiscombe biddisco at cscs.ch
Thu Nov 13 03:45:04 EST 2008


I started writing some code for a particular job yesterday and then 
realized that I can't do what I want to because it is not possible to 
have a non-axis aligned vtkImageData - or better vtkUniformGrid.

I wonder if there is a solution to having an image-like structure that 
is non axis aligned using some AMR box or heirarchical box dataset 
instead. I had a quick look at the classes, but didn't see an immediate 
solution. I need the dataset to be efficient like vtkImageData, but 
arbitrarily orientated. I need to add a transform to a vtkImageData at 
the dataset level, applying a transform to an actor would not help. The 
data needs to be really transformed in space (for resampling purposes).

Can anyone suggest an alternative?

If not, is there any other demand for modifying vtkUniformGrid perhaps 
to take a transform so that functions like findcell/getpoint/bounds etc 
are routed through it? (also, would it be realistic to add this to 
uniform grid, or are there too many places where assumptions are made 
about voxel corners etc).

thanks

JB

-- 
John Biddiscombe,                            email:biddisco @ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82





More information about the vtkusers mailing list