[vtkusers] [vtk-developers] Imagedata/Uniformgrid non axis aligned

Moreland, Kenneth kmorel at sandia.gov
Thu Nov 13 11:33:15 EST 2008


You could use a vtkStructuredGrid.  You can place the points of the regular
grid anywhere you like, so it would be easy to construct a rotated grid.

-Ken


On 11/13/08 1:45 AM, "John Biddiscombe" <biddisco at cscs.ch> wrote:

> 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
>
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>



   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      fax:   (505) 845-0833





More information about the vtkusers mailing list