[vtkusers] large vtkpolydata set
yenanqu at scs.fsu.edu
yenanqu at scs.fsu.edu
Mon Sep 22 16:02:15 EDT 2008
Hi,
I have a large vtkPolydata set to read, but when I run the code ,
always get error:
"ERROR: In /var/tmp/bach-build/BUILD/VTK/IO/vtkDataReader.cxx, line 1631
vtkPolyDataReader (0x8916a0): Error reading ascii cell data!"
the code works if I change a small ploy data set. I know it is may be
the memory problem for the large data, but, does anyone know how to
solve it? thanks in advance.
here is my code:
package require vtk
package require vtkinteraction
vtkRenderer ren1
vtkRenderWindow renWin
renWin AddRenderer ren1
vtkRenderWindowInteractor iren
iren SetRenderWindow renWin
vtkPolyDataReader plate
plate SetFileName "Cort_lobe_poly.vtk"
plate SetVectorsName "mode8"
vtkWarpVector warp
warp SetInputConnection [plate GetOutputPort]
warp SetScaleFactor 0.5
vtkPolyDataNormals normals
normals SetInputConnection [warp GetOutputPort]
vtkVectorDot color
color SetInputConnection [normals GetOutputPort]
vtkDataSetMapper plateMapper
plateMapper SetInputConnection [color GetOutputPort]
plateMapper SetScalarRange -1 1
vtkActor plateActor
plateActor SetMapper plateMapper
ren1 AddActor plateActor
ren1 SetBackground 1 1 1
renWin SetSize 500 500
renWin Render
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the vtkusers
mailing list