[vtkusers] slice structured grid with polydata

Bill Lorensen bill.lorensen at gmail.com
Fri Mar 25 14:02:50 EDT 2016


Agreed, the TableBased version just a much better job and retains the
hexahedrons that are completely inside the clipped region.

I'll also add a C++ example.


On Fri, Mar 25, 2016 at 9:16 AM, Cory Quammen <cory.quammen at kitware.com>
wrote:

> Awesome, thanks!
>
> Cory
>
> On Fri, Mar 25, 2016 at 12:11 PM, Justin Weber <onlyjus at gmail.com> wrote:
>
>> vtkTableBasedClipDataSet looks like what I want.
>>
>>
>> I tried a cube. Background mesh is 9x9x9 = 729 cells
>>
>>
>> cell breakdown:
>>
>> tetra: 8
>>
>> wedge: 84
>>
>> hexahedron: 637
>>
>> total: 729
>>
>>
>> Thanks for all your help! I'll add another example using
>> vtkTableBasedClipDataSet  to the wiki.
>>
>> Justin
>>
>> [image: Inline image 2]
>>
>> On Thu, Mar 24, 2016 at 9:04 PM, Justin Weber <onlyjus at gmail.com> wrote:
>>
>>> Every hex is converted to 5 tets.  So the "background mesh" starts with:
>>> 51x51x51x5 = 663,255 tets
>>>
>>> Volume cone / volume of mesh * tets = 1÷3×3.14×.5^2×1÷8×663255=21694
>>>
>>> Does seem a little off...
>>>
>>
>>
>
>
> --
> Cory Quammen
> R&D Engineer
> Kitware, Inc.
>



-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160325/36f30b03/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkTableBasedClipDataSet.png
Type: image/png
Size: 94995 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160325/36f30b03/attachment.png>


More information about the vtkusers mailing list