<div dir="ltr">Agreed, the TableBased version just a much better job and retains the hexahedrons that are completely inside the clipped region.<div><br></div><div>I'll also add a C++ example.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 25, 2016 at 9:16 AM, Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.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">Awesome, thanks!<span class="HOEnZb"><font color="#888888"><div><br></div><div>Cory</div></font></span></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Fri, Mar 25, 2016 at 12:11 PM, Justin Weber <span dir="ltr"><<a href="mailto:onlyjus@gmail.com" target="_blank">onlyjus@gmail.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>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:10pt;font-family:'Segoe UI',sans-serif;color:black">vtkTableBasedClipDataSet looks like what I want.</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:10pt;font-family:'Segoe UI',sans-serif;color:black"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:10pt;font-family:'Segoe UI',sans-serif;color:black">I tried a cube. Background mesh is 9x9x9 = 729 cells</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:10pt;font-family:'Segoe UI',sans-serif;color:black"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:10pt;font-family:'Segoe UI',sans-serif;color:black">cell breakdown:</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:10pt;font-family:'Segoe UI',sans-serif;color:black">tetra: 8</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:10pt;font-family:'Segoe UI',sans-serif;color:black">wedge: 84</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:10pt;font-family:'Segoe UI',sans-serif;color:black">hexahedron: 637</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:10pt;font-family:'Segoe UI',sans-serif;color:black">total: </span><span style="color:rgb(0,0,0);font-family:'Segoe UI',sans-serif;font-size:13.3333px">729</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="color:rgb(0,0,0);font-family:'Segoe UI',sans-serif;font-size:13.3333px"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="color:rgb(0,0,0);font-family:'Segoe UI',sans-serif;font-size:13.3333px">Thanks for all your help! I'll add another example using </span><span style="color:rgb(0,0,0);font-family:'Segoe UI',sans-serif;font-size:13.3333px">vtkTableBasedClipDataSet</span><span style="color:rgb(0,0,0);font-family:'Segoe UI',sans-serif;font-size:13.3333px">  to the wiki.</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt">Justin</p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:10pt;font-family:'Segoe UI',sans-serif;color:black"><img src="cid:ii_153ae87ab5d5fb37" alt="Inline image 2" width="358" height="419"><br></span></p>

</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 24, 2016 at 9:04 PM, Justin Weber <span dir="ltr"><<a href="mailto:onlyjus@gmail.com" target="_blank">onlyjus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Every hex is converted to 5 tets.  So the "background mesh" starts with:<br>
51x51x51x5 = 663,255 tets</p>
<p dir="ltr">Volume cone / volume of mesh * tets = 1÷3×3.14×.5^2×1÷8×663255=21694</p>
<p dir="ltr">Does seem a little off...</p>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="">-- <br><div>Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Unpaid intern in BillsBasement at noware dot com<br></div>
</div>