[vtkusers] Print PolyData properties with VTK-Java Wrapping
Gerrick Bivins
Gerrick.Bivins at halliburton.com
Thu Mar 14 11:21:33 EDT 2013
Ignore my previous reply...read it too fast. Sorry.
You may need to call Update() on your MarchingCubes filter. I haven't used the "SetInput()/GetOutput()" version of the pipeline in a while
so I don't remember if calling MarchingCubes.GetOutput() necessarily updates the pipeline (ie executes the filter) before returning the output.
Gerrick
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Gerrick Bivins
Sent: Thursday, March 14, 2013 10:18 AM
To: Ricardo A Corredor J; vtkusers at vtk.org
Subject: Re: [vtkusers] Print PolyData properties with VTK-Java Wrapping
I believe you're looking for
System.out.println(polydata.Print())
Gerrick
From: vtkusers-bounces at vtk.org<mailto:vtkusers-bounces at vtk.org> [mailto:vtkusers-bounces at vtk.org] On Behalf Of Ricardo A Corredor J
Sent: Thursday, March 14, 2013 10:16 AM
To: vtkusers at vtk.org<mailto:vtkusers at vtk.org>
Subject: [vtkusers] Print PolyData properties with VTK-Java Wrapping
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
________________________________
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130314/7c316b04/attachment.htm>
More information about the vtkusers
mailing list