[vtkusers] Problem with reader->Update();
Arun Kharghoria
kharghora at yahoo.com
Mon Apr 5 15:31:18 EDT 2004
Dear All:
I am using VTK4.2 with Borland Builder 5.0.
I am trying the following code and getting an
exception ('Exception Object Address:0xC0FEE6')in the
line
mapper->SetInput(reader->GetOutput());
and it is pointing to
USEFACET.H routine.
I'll be glad if somebody could give me an idea to get
around with this problem. (I am also giving the
'test.vtk' data file at the end of the mail).
Thanks a lot.
-AK
****code**
vtkDataSetReader *reader;
vtkDataSetMapper *mapper;
vtkActor *outlineActor;
reader = vtkDataSetReader::New();
reader->SetFileName("test.vtk");
mapper = vtkDataSetMapper::New();
mapper->SetInput(reader->GetOutput());
----
----
*** end of code **
test.vtk
# vtk DataFile Version 2.0
Volume example
ASCII
DATASET STRUCTURED_POINTS
DIMENSIONS 3 4 6
ASPECT_RATIO 1 1 1
ORIGIN 0 0 0
POINT_DATA 72
SCALARS volume_scalars char 1
LOOKUP_TABLE default
0 0 0 0 0 0 0 0 0 0 0 0
0 5 10 15 20 25 25 20 15 10 5 0
0 10 20 30 40 50 50 40 30 20 10 0
0 10 20 30 40 50 50 40 30 20 10 0
0 5 10 15 20 25 25 20 15 10 5 0
0 0 0 0 0 0 0 0 0 0 0 0
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/
More information about the vtkusers
mailing list