[vtkusers] Print PolyData properties with VTK-Java Wrapping

Ricardo A Corredor J ra.corredor at gmail.com
Thu Mar 14 11:15:52 EDT 2013


Hi,

I'm just trying to use vtk with the Java wrapping and I have a question
after making a little test. Actually, I have a polydata as the output of a
filter (vtkMarchingCubes). I can display the actor in the scene, but if I
print the polydata itself it seems that it is "empty".

Is it something normal of polydata's structure?

I show you the little part of code and the message printed:

vtkMarchingCubes marchingCubes = new vtkMarchingCubes();
marchingCubes.SetValue(0, 128);
marchingCubes.SetInputConnection(binaryImageReader.GetOutputPort());
marchingCubes.ComputeScalarsOff();

// PRINTING POLYDATA
vtkPolyData polyData = marchingCubes.GetOutput();
System.out.println(polyData);
System.out.println();

vtkPolyDataMapper mapper = new vtkPolyDataMapper();
mapper.SetInputConnection(marchingCubes.GetOutputPort());

///////////////////////////////////////
// MESSAGE PRINTED
//
vtkPolyData (073FCC38)
  Debug: Off
  Modified Time: 254
  Reference Count: 2
  Registered Events: (none)
  Source: (none)
  Information: 04BAEB90
  Data Released: False
  Global Release Data: Off
  UpdateTime: 0
  Release Data: Off
  UpdateExtent: Not Initialized
  RequestExactExtent: Off
   Field Data:
    Debug: Off
    Modified Time: 251
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
  Number Of Points: 0
  Number Of Cells: 0
  Cell Data:
    Debug: Off
    Modified Time: 254
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
    Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 )
    Interpolate Flags: ( 1 1 1 1 1 0 0 1 )
    Pass Through Flags: ( 1 1 1 1 1 1 1 1 )
    Scalars: (none)
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
    PedigreeIds: (none)
    EdgeFlag: (none)
  Point Data:
    Debug: Off
    Modified Time: 253
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
    Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 )
    Interpolate Flags: ( 1 1 1 1 1 0 0 1 )
    Pass Through Flags: ( 1 1 1 1 1 1 1 1 )
    Scalars: (none)
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
    PedigreeIds: (none)
    EdgeFlag: (none)
  Bounds:
    Xmin,Xmax: (1, -1)
    Ymin,Ymax: (1, -1)
    Zmin,Zmax: (1, -1)
  Compute Time: 286
  Number Of Points: 0
  Point Coordinates: 00000000
  Locator: 00000000
  Number Of Vertices: 0
  Number Of Lines: 0
  Number Of Polygons: 0
  Number Of Triangle Strips: 0
  Number Of Pieces: 1
  Piece: -1
  Ghost Level: 0


Thanks!

-- 
-------------------------------------------------------------
*Ricardo A. Corredor*
*RaC*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130314/1f2451f9/attachment.htm>


More information about the vtkusers mailing list