[vtkusers] Problems with vtkCubeSource.GetOutput()

ahmed Tokalak tokalak at web.de
Mon Feb 4 15:17:10 EST 2002


Hello vtkusers,
 
I do the following:
Java-Code:
 
  vtkCubeSource cube1 = new vtkCubeSource();
  cube1.SetXLength(3);
  cube1.SetYLength(3);
  cube1.SetZLength(3);
  vtkPolyData cube = cube1.GetOutput();
  
  cube.BuildCells();
  System.out.println("num faces: " + 
 cube.GetNumberOfPolys());
  System.out.println("num cells: " + 
 cube.GetNumberOfCells());
  System.out.println("num lines: " + 
 cube.GetNumberOfLines());
  System.out.println("num strips: " + 
 cube.GetNumberOfStrips());
  System.out.println("num verts: " + 

 cube.GetNumberOfVerts()); 
 
 -------------------End-Java-Code---------------------
 
 It prints this:
 
 num faces: 0
 num cells: 0
 num lines: 0
 num strips: 0
 num verts: 0
 
 Why ??? Can anybody help ?
 
 thanks for any help.


______________________________________________________________________________
Die Nummer, die man nie vergisst: Ihre persönliche Wunschrufnummer von WEB.DE! 
Jetzt einsteigen http://freemail.web.de




More information about the vtkusers mailing list