[vtk-developers] Patches: Large volumes, Image actor extent, Build tweak

David Gobbi david.gobbi at gmail.com
Fri Jun 3 13:29:03 EDT 2011


Hi Frank,

I can apply patches 1 to 3 over the weekend, and maybe patch 4 but I'll
have to look at the source in more detail, because I seem to recall that
some code elsewhere required the uninitialized value to be -1.

 - David


On Thu, Jun 2, 2011 at 6:01 PM, Frank Richter <frank.richter at gmail.com> wrote:
> Hello,
> while using VTK to visualize large 3D images (>4 gigavoxels) I ran into
> some issues; here are patches to fix these.
>
> Patches 0001 to 0003: they all share the same underlying issue, ‘int’
> type values used to compute sizes or offsets in volumes. These overflow
> on x86_64 when dealing with large volumes. ints were replaced with
> vtkIdType since that seems to be the type that usually maps to “pointer
> width”.
>
> Patch 0004: It so happened that an actual display extent ended up being
> -1, resulting in some undesired behaviour, so a rather unlikely value
> for an extent was chosen as the “magic“ value to denote an unset extent.
>
> Patch 0005: Hiding VTK symbols in static builds as well means they won't
> be exposed when linking a static VTK into some other shared library.
>
> I'd be grateful to hear some feedback on these changes.
>
> -f.r.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>



More information about the vtk-developers mailing list