<div class="gmail_quote"><div>I have a MultiBlockDataSet with only one block(CompositeDataSet) that has two children(PolyDataObjects). I'm using Python.</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><div>vtmReader = vtkXMLMultiBlockDataReader()</div></div><div><div>vtmReader.SetFileName("C:/Paraview/test.vtm")</div></div><div><div>vtmReader.Update()</div></div><div><div>vtm = vtmReader.GetOutput()</div>
</div></blockquote><div><br></div><div>Where vtm is my MultiBlockDataSet.</div><div><br></div><div>I have two questions:</div><div>1. How do I access the children?</div><div> I was think of doing something like this (although I know this implementation is wrong):</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>vtmBlock0 = vtm.GetBlock(0) #This would return the CompositeDataSet (Even though I don't think it works this way)</div>
<div>vtmChild0 = vtmBlock0.GetChild(0) # This would return the first polyDataObject</div><div>vtmChild1 = vtmBlock1.GetChild(1) #This would return the second polyDataObject</div><div><br></div></blockquote><div>2. Can I create one large PolyDataObject from all children with some sort of merge? I know if I separate them they can be appended, but I'm wondering if theres a faster way to do it.</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><br></div></blockquote><div>Thanks in advance.</div><div>-- <br>Matt Cragun<br> <br>Engineer<br>TotalSim LLC <br>7003 Post Road, <br>
Suite 415 <br>Dublin, Ohio 43016<br>O: (614) 255-7426<br>M: (801) 404-6021 <br>E: <a href="mailto:mcragun@totalsim.us" target="_blank">mcragun@totalsim.us</a><br>
</div>
</div><br><br clear="all"><br>-- <br>Matt Cragun<br> <br>Engineer<br>TotalSim LLC <br>7003 Post Road, <br>Suite 415 <br>Dublin, Ohio 43016<br>O: (614) 255-7426<br>M: (801) 404-6021 <br>E: <a href="mailto:mcragun@totalsim.us">mcragun@totalsim.us</a><br>