<div dir="ltr">Shell means locally 2D and Truss means locally 3D?<div>
<pre style="margin-top:12px;margin-bottom:0px"><span style="font-family:'Courier New,courier';font-weight:600;color:#008000">def</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:#0000ff">process_block</span><span style="font-family:'Courier New,courier'">(block):</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';font-style:italic;color:#408080">#print dir(block)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';font-style:italic;color:#408080">#print dir(block.VTKObject)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';font-weight:600;color:#008000">print</span><span style="font-family:'Courier New,courier'"> block</span><span style="font-family:'Courier New,courier';color:#666666">.</span><span style="font-family:'Courier New,courier'">VTKObject</span><span style="font-family:'Courier New,courier';color:#666666">.</span><span style="font-family:'Courier New,courier'">GetClassName()</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';font-weight:600;color:#008000">for</span><span style="font-family:'Courier New,courier'"> x </span><span style="font-family:'Courier New,courier';font-weight:600;color:#aa22ff">in</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:#008000">range</span><span style="font-family:'Courier New,courier'">(</span><span style="font-family:'Courier New,courier';color:#666666">0</span><span style="font-family:'Courier New,courier'">,block</span><span style="font-family:'Courier New,courier';color:#666666">.</span><span style="font-family:'Courier New,courier'">GetNumberOfCells()):</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';font-style:italic;color:#408080">#print dir(block.GetCell(x))</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';font-weight:600;color:#008000">print</span><span style="font-family:'Courier New,courier'"> x, block</span><span style="font-family:'Courier New,courier';color:#666666">.</span><span style="font-family:'Courier New,courier'">GetCellType(x)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;font-family:'Courier New,courier'"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier';font-weight:600;color:#008000">for</span><span style="font-family:'Courier New,courier'"> block </span><span style="font-family:'Courier New,courier';font-weight:600;color:#aa22ff">in</span><span style="font-family:'Courier New,courier'"> output:</span></pre>
<pre style="margin-top:0px;margin-bottom:12px"><span style="font-family:'Courier New,courier'"> process_block(block)</span></pre>The printed cell types correspond to:<br> <a href="http://www.vtk.org/doc/nightly/html/vtkCellType_8h_source.html">http://www.vtk.org/doc/nightly/html/vtkCellType_8h_source.html</a><br>There is probably a macro somewhere to get a GetCellTypeAsString() but easy enough to do in the filter.<br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div>
<br><div class="gmail_quote">On Fri, Aug 14, 2015 at 7:47 AM, Dennis Conklin <span dir="ltr"><<a href="mailto:dennis_conklin@goodyear.com" target="_blank">dennis_conklin@goodyear.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">David,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Yes, but I am more dense!!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt">print block.VTKObject.GetClassName()<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">prints out vtkUnstructuredGrid, which I already know.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Within my UnstructuredGrid, some blocks are hex elements, some blocks are shell elements and some blocks are truss elements – that is what I am trying to detect!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Dennis<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> David E DeMarle [mailto:<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>]
<br>
<b>Sent:</b> Thursday, August 13, 2015 10:43 PM<br>
<b>To:</b> Dennis Conklin<br>
<b>Cc:</b> Paraview (<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>)<br>
<b>Subject:</b> [EXT] Re: [Paraview] How to detect element type inside Programmable Filter<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">On Thu, Aug 13, 2015 at 10:07 PM, Dennis Conklin <<a href="mailto:dennis_conklin@goodyear.com" target="_blank">dennis_conklin@goodyear.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">I may be dense but I'm persistent!<u></u><u></u></p>
</blockquote>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I am more persistent (and more dense). :)<u></u><u></u></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><u></u> <u></u></p>
<p style="margin:0in;margin-bottom:.0001pt">def process_block(block):<u></u><u></u></p>
<p style="margin:0in;margin-bottom:.0001pt"> #print dir(block)<u></u><u></u></p>
<p style="margin:0in;margin-bottom:.0001pt"> #print dir(block.VTKObject)<u></u><u></u></p>
<p style="margin:0in;margin-bottom:.0001pt"> print block.VTKObject.GetClassName()<u></u><u></u></p>
<p style="margin:0in;margin-bottom:.0001pt">for block in output:<u></u><u></u></p>
<p style="margin:0in;margin-bottom:.0001pt"> process_block(block)<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>