Thanks for everyones comments. I made a plugin to merge the blocks. I've attached the files if anyone is interested.<br><br>Regards,<br>Paul<br><br><div><span class="gmail_quote">On 17/04/2008, <b class="gmail_sendername">Kent Eschenberg</b> <<a href="mailto:eschenbe@psc.edu">eschenbe@psc.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span class="q"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Paul Edwards wrote:<br>
Is there a way to convert a multi-block structured grid into a<br>
single unstructured block?<br>
</blockquote>
<br></span>
There will always be tasks like this that ParaView can't do easily. Kitware will never catch up because we will keep inventing new things to do!<br>
<br>
A good solution is to build a version of VTK with Python and use it for little tasks like this. In your case the basic sequence would be<br>
<br>
- create vtkAppendFilter<br>
- read the multi-block grid<br>
- loop over blocks and add each to the append filter<br>
- write the append filter's output<br>
<br>
I used a similar Python program to combine multi-block PVD files sets into a smaller number of files.<br>
<br>
When the blocks share vertices we run the append filter's output through vtkCleanUnstructuredGrid before writing it. This requires a little work because this filter is in ParaView but not VTK. I pulled that filter from the ParaView source tree and added it to VTK following the instructions on the VTK Wiki page "Extending VTK".<br>
<br>
Hey Kitware - why are some really great classes like vtkCleanUnstructuredGrid in ParaView instead of VTK?<br>
<br>
Kent<br>
Pittsburgh Supercomputing Center<span class="q"><br>
_______________________________________________<br>
ParaView mailing list<br>
<a href="mailto:ParaView@paraview.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ParaView@paraview.org</a><br>
</span><div><span class="e" id="q_1195d1c5246ee964_3"><a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</span></div></blockquote></div><br>