[vtkusers] cause of crash unknown

Arun Nagarajan arun at cis.jhu.edu
Wed Mar 5 13:44:22 EST 2003


Hi all,

I have the following script that is supposed to render a 3d structured
points image.

package require vtk
package require vtkinteraction

vtkStructuredPointsReader reader
reader SetFileName ThalamusS1002.defAtlas.vtk

vtkVolumeRayCastMapper mapper
mapper SetInput [reader GetOutput]

vtkVolume volume
volume SetMapper mapper

vtkRenderer ren1
vtkRenderWindow renWin
renWin AddRenderer ren1
vtkRenderWindowInteractor iren
iren SetRenderWindow renWin

ren1 AddVolume volume
ren1 SetBackground 1 1 1
renWin SetSize 200 200

iren Initialize
iren AddObserver UserEvent {wm deiconify .vtkInteract}

wm withdraw .


However this script crashes without fail regardless of the file that is
passed in. I know the file is well structured as I wrote some small tests to
verify. Any insight would be appreciated.

Arun




More information about the vtkusers mailing list