<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 7, 2017 at 8:10 PM, Andy Bauer <span dir="ltr"><<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Hi David,<br><br></div>I'm not sure how it works with structured grids but with vtkUniformGrids (i.e. vtkImageData with blanking) the VTK readers and writers really just produce vtkImageData and the blanking is ignored. It may be the same with the XML structured grid files. My suggestion would be to look at the vtkImageDataToUniformGrid class in VTK and try doing a similar thing in ParaView using the Python Programmable filter. <br><br></div>Cheers,<br></div>Andy<br></div><div class="gmail-HOEnZb"><div class="gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 7, 2017 at 10:22 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div class="gmail-m_-3247660516990361488h5"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 6, 2017 at 11:14 AM, Andy Bauer <span dir="ltr"><<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>Thanks for the bug report!<br><br></div>I think the stackoverflow issue is probably also related to blanking. I added to your bug report with two other (likely) related issues.<br><br></div>As a side note, I think if blanking was used instead of ghost cells this may work properly.<br><br></div>Thanks,<br></div>Andy<br></div><div class="gmail-m_-3247660516990361488m_-6280935457943378325gmail-HOEnZb"><div class="gmail-m_-3247660516990361488m_-6280935457943378325gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 6, 2017 at 8:45 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span><div>On Sun, Mar 5, 2017 at 7:05 PM, Andy Bauer <span dir="ltr"><<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>></span> wrote:<br></div></span><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hi David,<br><br></div>This looks like it has to do with blanking (i.e. in PV 5.2 if I don't load the vtkGhostType array it has the proper bounds). Would you mind putting in a bug report on Gitlab (<a href="https://gitlab.kitware.com/paraview/paraview" target="_blank">https://gitlab.kitware.com/pa<wbr>raview/paraview</a>)?<br><br></div><div>Thanks,<br></div><div>Andy</div></div></blockquote><div><br></div></span><div>Done:</div><a href="https://gitlab.kitware.com/paraview/paraview/issues/17244" target="_blank">https://gitlab.kitware.com/par<wbr>aview/paraview/issues/17244</a><br><div><br></div><div>Here is another presumed bug that seems to also have to do with blanking: <a href="http://stackoverflow.com/questions/42543340/cell-labels-in-selection-display-inspector-dont-work-when-any-cells-are-ghosted" target="_blank">http://stackoverflow<wbr>.com/questions/42543340/cell-l<wbr>abels-in-selection-display-ins<wbr>pector-dont-work-when-any-cell<wbr>s-are-ghosted</a> - not trying to pollute this thread but do you think that behavior could be helpful to understand the Cell Centers issue?</div><div class="gmail_extra"><br clear="all"></div><div class="gmail_extra">Thanks,</div><div class="gmail_extra"><br></div><div>David </div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div><div class="gmail_extra">Hi Andy,</div><div class="gmail_extra"><br></div><div class="gmail_extra">The file was created with something like this:<br><div><br></div><div><a href="https://gist.github.com/daviddoria/8bf981aa593b7cefcd9114588e4766db" target="_blank">https://gist.github.com/davidd<wbr>oria/8bf981aa593b7cefcd9114588<wbr>e4766db</a><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail-m_-3247660516990361488m_-6280935457943378325gmail_signature">Does calling </div><div class="gmail-m_-3247660516990361488m_-6280935457943378325gmail_signature"><span style="color:rgb(36,41,46);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap"><br></span></div><div class="gmail-m_-3247660516990361488m_-6280935457943378325gmail_signature"><span style="color:rgb(36,41,46);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">structuredGrid->BlankPoint(0);</span></div><div class="gmail-m_-3247660516990361488m_-6280935457943378325gmail_signature"><span style="color:rgb(36,41,46);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap"><br></span></div><div class="gmail-m_-3247660516990361488m_-6280935457943378325gmail_signature"><span style="color:rgb(36,41,46);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">not count as "using blanking"? Can you point me to the "right way" to do this if this is not the current best practice?</span></div><div class="gmail-m_-3247660516990361488m_-6280935457943378325gmail_signature"><span style="color:rgb(36,41,46);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap"><br></span></div><div class="gmail-m_-3247660516990361488m_-6280935457943378325gmail_signature"><span style="color:rgb(36,41,46);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">Thanks!</span></div><span class="gmail-m_-3247660516990361488HOEnZb"><font color="#888888"><div class="gmail-m_-3247660516990361488m_-6280935457943378325gmail_signature"><br>David</div></font></span></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div><div class="gmail_extra">I created a uniform grid:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="https://gist.github.com/daviddoria/99fa99c52aa07ee78b7e7412e74d592f">https://gist.github.com/daviddoria/99fa99c52aa07ee78b7e7412e74d592f</a><br><div class="gmail_extra"><a href="https://drive.google.com/open?id=0B8yIfGqnlfSoNTNKWWtua1pEUTA">https://drive.google.com/open?id=0B8yIfGqnlfSoNTNKWWtua1pEUTA</a><br clear="all"><div><div class="gmail_signature"><br></div><div class="gmail_signature">Using the vtkXMLImageDataWriter seemed to write the same type of vtkGhostType array (shown in the cell data in Paraview), but Paraview doesn't seem to respect the blanking - all 8 voxels are drawn.</div><div class="gmail_signature"><br></div><div class="gmail_signature">Any other ideas?</div><div class="gmail_signature"><br>David</div></div></div></div></div>