[vtkusers] How to cut a hole in polydata?!

Bill Lorensen bill.lorensen at gmail.com
Fri Mar 23 11:53:26 EDT 2012


If you have a version of VTK newer than 5.9.20111206 you can use the
new vtkBooleanOperationPolyDataFilter.

Here is an example:
http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilter


On Thu, Mar 22, 2012 at 6:02 AM, Fabian <fabian-richter at gmx.de> wrote:
> Hello Alan,
>
> thanks! That solved one problem.
> Now I am confrontated with another one. Depending on the setting whether
>   Clipper  ->   InsideOutOn();    or
>   Clipper  ->   InsideOutOff();
>
> I can see the whole polydata without a hole in it (as I didnt perfom any
> operation on it) or nothing, as all of the polydata was clipped away.
>
> Maybe I should give a more detailed description of my initial problem:
> I have a rectangular surface, definded by 4 points and 2 cells. (Output from
> a linear extrusion of a line). In this simple surface i want to cut a shaped
> hole (lets say its round).
>
> Can vtkClipPolyData "reorganize" my Polydataobject and add points and
> redefine cells? Or does ist just clip away the cells that are "touched" by
> the contour of the implicit function (sphere)?  This would explain why I see
> either everything or nothing; because I have just 2 cells with both of them
> beeing intersected by the sphere.
>
> THANKS A LOT!
> Fabian
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/How-to-cut-a-hole-in-polydata-tp5567306p5585794.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtkusers mailing list