[vtkusers] Java EXCEPTION_ACCESS_VIOLATION

Denis Barbier bouzim at gmail.com
Tue Nov 3 07:55:14 EST 2009


On 2009/10/25 Divye wrote:
>
> Hi All,
>
> I am trying to run a program for 3d rendering of DICOM images , using java on win vista 32 - bit using vtk 5.4.2 and am getting the following EXCEPTION_ACCESS_VIOLATION.
[...]
>     private boolean setupRendererMIP() {
>         volumeProperty.SetColor(colorTransferFunction);
>         volumeProperty.SetScalarOpacity(opacityTransferFunction);
>         volumeProperty.SetInterpolationTypeToLinear();
>         volumeProperty.ShadeOff();
>         volume.SetProperty(volumeProperty);
>
>         volumeMapperSoftware.SetInput(imageData);
[...]

Add
  volumeMapperSoftware.SetVolumeRayCastFunction(new
vtkVolumeRayCastCompositeFunction());

I do not understand why VolumeRayCastFunction is initialized to NULL
in vtkVolumeRayCastMapper constructor, rendering will crash unless
SetVolumeRayCastFunction is called.

Denis



More information about the vtkusers mailing list