[vtkusers] imageSliceMapper->GetSliceNumber() problem
David Gobbi
david.gobbi at gmail.com
Thu Aug 16 08:38:07 EDT 2012
On Thu, Aug 16, 2012 at 5:53 AM, José M. Rodriguez Bacallao
<jmrbcu at gmail.com> wrote:
> David, could you please post an example of how to calculate the slice
> number give an vtkPlane and vice versa (setting the slice number from
> an vtk plane) using vtkImageResliceMapper as the mapper?
If you know a point on whatever you consider to be the first slice of
the volume, then all you need to do is compute the distance of the
slice plane from that point. But what do you consider to be the
"first slice" when you are doing an oblique reformat? Really, it's
arbitrary. The numbering of the slices is up to whoever is developing
the application.
- David
More information about the vtkusers
mailing list