[vtkusers] python, volume rendering and segmentation fault

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Thu Sep 20 10:51:23 EDT 2001


hi,

>>>>> "EA" == Ernvik Aron <Aron.Ernvik at smhi.se> writes:

    EA> I've changed this into:

    EA> ============================================== import Numeric
    EA> a = Numeric.array([0, 1, 2], Numeric.UnsignedInt8) data =
    EA> vtkStructuredPoints() data.setDimensions(3, 3, 1) scalars =
    EA> vtkScalars() scalars.InsertScalar(0, a[0]) ...
    EA> scalars.InsertScalar(8, a[2]) ...  volumeMapper.setInput(data)
    EA> ...  outline.setInput(data)
    EA> ============================================ *

    EA> ...and I get a segmentation fault? Is there any other way to
    EA> do this (I suppose there is...)?

The stuff in the code you sent seems okay but the details of what else
you put in data are unclear.  You could also run python under a
debugger (gdb) and see where the segfault occurs - that will atleast
tell you where the mistake is.

prabhu




More information about the vtkusers mailing list