[vtkusers] vtksmartvolumemapper issues

Maguire, Alister Owen maguire7 at llnl.gov
Tue May 15 12:24:21 EDT 2018


Are you including the following two lines in your .C file?

#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkRenderingVolumeOpenGL2);

I’m not sure if this is the root of your issue, but I had run into problems while working with vtkSmartVolumeMapper a while back, and I ended up discovering that these two lines were needed for it to be used properly.

You can find more info about it here
https://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines

Best,
Alister



From: vtkusers <vtkusers-bounces at vtk.org> on behalf of "mark.ostroot at lickenbrocktech.com" <mark.ostroot at lickenbrocktech.com>
Date: Tuesday, May 15, 2018 at 8:43 AM
To: "vtkusers at vtk.org" <vtkusers at vtk.org>
Subject: [vtkusers] vtksmartvolumemapper issues

Hello all,

I am updating some old vtk 6.3 code to vtk 8.1, Currently the older code uses vtksmartvolumemapper, I am running into a run time error with a new smart pointer.

my code:

#include <vtkSmartVolumeMapper.h>
..
..
..
vtkSmartPointer<vtkSmartVolumeMapper> vMapper  = vtkSmartPointer<vtkSmartVolumeMapper>::New();    < = this breaks with unhandled exception at (vtkRenderingVolume-8.1.dll) Access violation reading location 0x0000000000000000



The code compiles, but I hit this run time exception on execution. I don't believe the smartvolumemapper has been deprecated, does anyone have any idea of what I am doing wrong?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180515/13976f97/attachment.html>


More information about the vtkusers mailing list