vtkVoxelModeller and vtkStructuredPointsWriter
Miguel Angel Martin Fernandez
vtk at helios.tel.uva.es
Fri Feb 18 04:43:51 EST 2000
Hello vtk users,
I'm trying to write the output of the filter vtkVoxelModeller and
I only obtain 0's. I'm using VTK 2.4 (with VTK 2.0 it worked properly).
The tcl program is basically the next:
------------------------------
vtkSphereSource sphereModel
vtkVoxelModeller voxelModel
voxelModel SetInput [sphereModel GetOutput]
voxelModel SetSampleDimensions 21 21 21
vtkStructuredPointsWriter writer
writer SetFileName prueba.vtk
writer SetInput [voxelModel GetOutput]
writer Write
------------------------------
The file obtained is the next:
# vtk DataFile Version 2.0
vtk output
ASCII
DATASET STRUCTURED_POINTS
DIMENSIONS 21 21 21
SPACING 0.14924 0.14683 0.15
ORIGIN -1.4924 -1.4683 -1.5
POINT_DATA 9261
SCALARS scalars int 1
LOOKUP_TABLE default
0 0 0 0 0 0
0 0 0 0 0 0
... (skip)
0 0 0 0 0 0
Do you know what is wrong?
Thanx in advance.
Miguel.
________________________________________________________
_________(_ _)_________
\········(_ Miguel Ángel Martín Fernández _)········/
\·······(_ ETSI Telecomunicación, Universidad de Valladolid _)·······/
\······(_ Campus Miguel Delibes, Camino del Cementerio, s/n _)······/
)·····(_ e-mail: miguel at atenea.tel.uva.es _)·····(
/······(_ Tfno: +34-983-423000 Ext. 25548 _)······\
/·······(________________________________________________________)·······\
/__________) (_____________\
More information about the vtkusers
mailing list