[vtkusers] how to transfer vtkMultiBlockDataSet to vtkPolyData
赖瑞勋
lairuixun at 163.com
Sun Sep 26 03:36:56 EDT 2010
Hi! I am a novice at VTK.
I want to read my Tecplot data and show it using VTK.The data file(old_bridge.plt) and the result had been adjoined into attachment.
In the data file ,it has 8 nodes,6 cells with the type of triangle.
My code(showBridge.cxx) adjoined into attachment.And my trouble is how to transfer vtkMultiBlockDataSet to vtkPolyData. This code is the modification from the book "The Visualization Toolkit 3rd" in chapter 5.
Do you think my solution is right ? or there are some other ways to do this more effectively?
The on line help "vtkTecplotReader Class Reference" says:"vtkTecplotReader parses an ASCII Tecplot file,and can extract vtkPointData and / orvtkCellData".Unfortunately,there are not have additional details of how to extract the pointdata and celldata.
I have been puzzled by this problem for few days , after all,there are so many Classessimilarin VTK.
Any suggestions are very glad.
Thanks!
Reece
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100926/92ac03dd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: showBridge.cxx
Type: application/octet-stream
Size: 2889 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100926/92ac03dd/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: old_bridge.plt
Type: application/octet-stream
Size: 273 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100926/92ac03dd/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: result.jpg
Type: image/jpeg
Size: 43396 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100926/92ac03dd/attachment.jpg>
More information about the vtkusers
mailing list