[vtkusers] celltype 40?
    Karin Faulhaber 
    faulhaber at ipf.uni-karlsruhe.de
       
    Tue Oct 16 07:17:46 EDT 2001
    
    
  
Hi,
I read a vtkPolyData from an ascii file (which I have created myself)
and send it through a vtkMaskPointsFilter. Since I couldn't see any
output I asked for the celltype and number of cells of the output. What
I get is a celltype of 40 for the first cell and 0 for the rest, the
number of cells is also 0. I can see my DEM if I feed the mapper with
the output of vtkPolyDataReader but not with the output of
vtkMaskPoints. I use vtk 3.1.
Any ideas? I appreciate any help,
Karin
---------------------
code snippet:
	vtkPolyDataReader polyReader = new vtkPolyDataReader();
	polyReader.SetFileName("dgm.vtk");
	polyReader.Update();
	vtkMaskPoints fMask = new vtkMaskPoints();
	fMask.SetInput(polyReader.GetOutput());
	//fMask.SetOnRatio(20);
	//fMask.RandomModeOn();
	System.out.println("type "+polyReader.GetOutput().GetCellType(0));
	System.out.println("type "+polyReader.GetOutput().GetCellType(1));
	System.out.println("type "+polyReader.GetOutput().GetCellType(2));
	System.out.println("number
"+polyReader.GetOutput().GetNumberOfCells());
	System.out.println("type "+fMask.GetOutput().GetCellType(0));
	System.out.println("type "+fMask.GetOutput().GetCellType(1));
	System.out.println("type "+fMask.GetOutput().GetCellType(2));
	System.out.println("number "+fMask.GetOutput().GetNumberOfCells());
        vtkPolyDataMapper mPoints = new vtkPolyDataMapper();
	//mPoints.SetInput(polyReader.GetOutput());
	mPoints.SetInput(fMask.GetOutput());
	...
	...
What I get is:
type 1
type 1
type 1
number 338712
type 40
type 0
type 0
number 0
My input file looks like that:
---
# vtk DataFile Version 3.0
vtk output
ASCII
DATASET POLYDATA
POINTS 338712 float
 3479999.50 5417833.50  245.54
 3479997.50 5417832.50  245.59
 3479998.50 5417832.50  245.60
 ...
VERTICES 338712 677424
1 0
1 1
1 2
...
1 338709
1 338710
1 338711
----
-- 
Karin Faulhaber
Universitaet Karlsruhe
Institut fuer Photogrammetrie und Fernerkundung (IPF)
Englerstr. 7 
76128 Karlsruhe
Tel: 0721/608-3676
E-Mail: faulhaber at ipf.uni-karlsruhe.de
    
    
More information about the vtkusers
mailing list