<div dir="ltr">Hi,<div><br></div><div>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". <br>
<br>Is it something normal of polydata's structure?<br><br>I show you the little part of code and the message printed:</div><div><br></div><div><div>vtkMarchingCubes marchingCubes = new vtkMarchingCubes();</div><div>marchingCubes.SetValue(0, 128);</div>
<div>marchingCubes.SetInputConnection(binaryImageReader.GetOutputPort());</div><div>marchingCubes.ComputeScalarsOff();</div><div><br></div><div style>// PRINTING POLYDATA</div><div>vtkPolyData polyData = marchingCubes.GetOutput();</div>
<div>System.out.println(polyData);<br></div><div>System.out.println();</div><div><br></div><div>vtkPolyDataMapper mapper = new vtkPolyDataMapper();</div><div>mapper.SetInputConnection(marchingCubes.GetOutputPort());</div>
</div><div><div><br></div><div>///////////////////////////////////////</div><div style>// MESSAGE PRINTED</div><div style>//</div><div>vtkPolyData (073FCC38)</div><div> Debug: Off</div><div> Modified Time: 254</div><div>
Reference Count: 2</div><div> Registered Events: (none)</div><div> Source: (none)</div><div> Information: 04BAEB90</div><div> Data Released: False</div><div> Global Release Data: Off</div><div> UpdateTime: 0</div>
<div> Release Data: Off</div><div> UpdateExtent: Not Initialized</div><div> RequestExactExtent: Off</div><div> Field Data:</div><div> Debug: Off</div><div> Modified Time: 251</div><div> Reference Count: 1</div>
<div> Registered Events: (none)</div><div> Number Of Arrays: 0</div><div> Number Of Components: 0</div><div> Number Of Tuples: 0</div><div> Number Of Points: 0</div><div> Number Of Cells: 0</div><div> Cell Data:</div>
<div> Debug: Off</div><div> Modified Time: 254</div><div> Reference Count: 1</div><div> Registered Events: (none)</div><div> Number Of Arrays: 0</div><div> Number Of Components: 0</div><div> Number Of Tuples: 0</div>
<div> Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 )</div><div> Interpolate Flags: ( 1 1 1 1 1 0 0 1 )</div><div> Pass Through Flags: ( 1 1 1 1 1 1 1 1 )</div><div> Scalars: (none)</div><div> Vectors: (none)</div><div>
Normals: (none)</div><div> TCoords: (none)</div><div> Tensors: (none)</div><div> GlobalIds: (none)</div><div> PedigreeIds: (none)</div><div> EdgeFlag: (none)</div><div> Point Data:</div><div> Debug: Off</div>
<div> Modified Time: 253</div><div> Reference Count: 1</div><div> Registered Events: (none)</div><div> Number Of Arrays: 0</div><div> Number Of Components: 0</div><div> Number Of Tuples: 0</div><div> Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 )</div>
<div> Interpolate Flags: ( 1 1 1 1 1 0 0 1 )</div><div> Pass Through Flags: ( 1 1 1 1 1 1 1 1 )</div><div> Scalars: (none)</div><div> Vectors: (none)</div><div> Normals: (none)</div><div> TCoords: (none)</div>
<div> Tensors: (none)</div><div> GlobalIds: (none)</div><div> PedigreeIds: (none)</div><div> EdgeFlag: (none)</div><div> Bounds: </div><div> Xmin,Xmax: (1, -1)</div><div> Ymin,Ymax: (1, -1)</div><div> Zmin,Zmax: (1, -1)</div>
<div> Compute Time: 286</div><div> Number Of Points: 0</div><div> Point Coordinates: 00000000</div><div> Locator: 00000000</div><div> Number Of Vertices: 0</div><div> Number Of Lines: 0</div><div> Number Of Polygons: 0</div>
<div> Number Of Triangle Strips: 0</div><div> Number Of Pieces: 1</div><div> Piece: -1</div><div> Ghost Level: 0</div><div><br></div><div><br></div><div style>Thanks!</div><div><br></div>-- <br><div dir="ltr"><div><font color="#003333">-------------------------------------------------------------</font></div>
<div><font color="#003333"><strong>Ricardo A. Corredor</strong></font></div><div><font color="#003333" size="1"><strong>RaC</strong></font></div><div> </div></div>
</div></div>