[vtkusers] slice structured grid with polydata

Justin Weber onlyjus at gmail.com
Thu Feb 18 22:08:14 EST 2016


I would like to generate a "cutcell" mesh using vtk by slicing a structured
grid with polydata loaded from a STL file. The resulting mesh would be an
unstructured grid.

Are there any tools in vtk to accomplish this?

I can create the structured grid and polydata successfully. Now I just need
an algorithm to slice the structured mesh with the polydata surface.

In my searching I could not find anything. However, I could accomplish this
by ray casting to find the intersections between the structured grid and
the polydata. Then using those points to create the unstructured grid.

See attached 2d sketch.

Thanks!
Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160218/c529fd67/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_2016-02-18-21-45-55-1.png
Type: image/png
Size: 120267 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160218/c529fd67/attachment-0001.png>


More information about the vtkusers mailing list