<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Oct 20, 2017 at 10:10 AM, A . <span dir="ltr"><<a href="mailto:super_achie@hotmail.com" target="_blank">super_achie@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-2745079674088173762divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p><span style="font-size:12pt">Thanks for your reply. I can see this work for vtkImageData objects having the same dimensions. What would you advise when working with vtkImageData objects of varying dimensions? In that case the attribute data will not 'fit' a single vtkImageData object.</span></p></div></div></blockquote><div>For that case, nothing comes to mind that will let you stored several different vtkImageData objects in a single file. Even if a vtkMultiBlockDataSet worked for your other needs, it would actually be saved out as one .vti file for each block plus a top-level .vtm file that points to the .vti files.</div><div><br></div><div>Sorry,</div><div>Cory</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div id="m_-2745079674088173762divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Best,</p>
<p>Jimmy</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_-2745079674088173762divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Van:</b> Cory Quammen <<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>><br>
<b>Verzonden:</b> vrijdag 20 oktober 2017 14:48<br>
<b>Aan:</b> A .<br>
<b>CC:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Onderwerp:</b> Re: [Paraview] Is it possible to group vtkImageData objects?</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">Hi Jimmy,
<div><br>
</div>
<div>Try "Append Attributes". This will yield a single vtkImageData that has several point data arrays, or "attributes". As long as the input vtkImageData have the same dimensions, this filter will do what you like. You can then pick which array you want to
view with the Volume representation.</div>
<div><br>
</div>
<div>To extract a vtkImageData with one or a subset of the appended arrays, you can use "Extract Component" or "Pass Arrays", respectively.</div>
<div><br>
</div>
<div>HTH,</div>
<div>Cory</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Oct 20, 2017 at 7:29 AM, A . <span dir="ltr"><<a href="mailto:super_achie@hotmail.com" target="_blank">super_achie@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-2745079674088173762m_5312685511006341840divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif">
<p>Dear community,</p>
<p><br>
</p>
<p>Is it possible with ParaView to group vtkImageData objects in a single file format? I would like to import a couple of regular grids (i.e. vtkImageData objects) as a single file, rather than as grid_1.pvti, grid_2.pvti, etc... Once imported I would like
to simply select which grid to visualize (with volume rendering). </p>
<p><br>
</p>
<p>I tried the following structures already:</p>
<p><br>
</p>
<p></p>
<ol style="margin-bottom:0px;margin-top:0px">
<li>vktMultiBlockDataSet containing N vtkImageData objects as child blocks.</li><li>vtkMultiBlockDataSet containing 1 vtkMultiPieceDataSet, which contains N vtkImageData objects as child pieces</li></ol>
<div><br>
</div>
<div>The first structure kind of works, but in order to visualize one vtkImageData I need to "Extract Block" and "Resample to Image", which doesn't result in the exact same image when doing volume rendering.</div>
<div>The second structure mixes my vtkImageData into a single data object. I cannot do something like "Extract Piece".</div>
<div><br>
</div>
<div>The main reason I want to have a single data structure containing all my grids is so that I can pass it to my Python CoProcess Catalyst pipeline. The number of grids can vary so I cannot simply hardcode the pipeline for a fixed number of grids.</div>
<div><br>
</div>
<div>If there is a way to make this work, please let me know!</div>
<div><br>
</div>
<div>Best,</div>
<div>Jimmy</div>
<p></p>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">
http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-2745079674088173762gmail_signature">Cory Quammen<br>
Staff R&D Engineer<br>
Kitware, Inc.</div>
</div>
</div>
</div></div></div>
</div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>
</div></div>