Hi Stefan, <br><br>have a look at the TestCollisionDetection1.cxx. You will see the filter can provide both, the intersection line and the resultion polydata of both sides. Just test a bit. For example for union operation you use vtkAppendPolyData to merge the two resultion polydata.<br>
<br>see also <br><a href="http://vtk.org/pipermail/vtkusers/2007-March/090247.html">http://vtk.org/pipermail/vtkusers/2007-March/090247.html</a><br><br>Marian<br><br><div class="gmail_quote">On Wed, Mar 19, 2008 at 3:55 PM, Stefan <<a href="mailto:sickboy@9elements.com">sickboy@9elements.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Hi Marian,<br>
<br>
thanks for your suggestion, but finding out the intersection is just
one small part<br>
of the boolean operations. <br>
<br>
<br>
Stefan<br>
<br>
<br>
Marian Panten schrieb:
<div><div></div><div class="Wj3C7c"><blockquote type="cite">
Hi Stefan, <br>
<br>
try <br>
<br>
<a href="http://www.bioengineering-research.com/vtk/vtkCollisionDetectionFilter.htm" target="_blank">http://www.bioengineering-research.com/vtk/vtkCollisionDetectionFilter.htm</a><br>
<br>
this works fine! You have to apply the operations on the resulting
polydata. <br>
<br>
Marian<br>
<br>
<div>On Wed, Mar 19, 2008 at 3:16 PM, Stefan <<a href="mailto:sickboy@9elements.com" target="_blank">sickboy@9elements.com</a>>
wrote:<br>
<blockquote>I'm looking for a Boolean operation (UNION, INTERSECTION,
DIFFERENCE) to<br>
apply on two vtkPolyData.<br>
It should return a new vtkPolyData with the result of the operation.<br>
<br>
My current search results are:<br>
<br>
- vtkPolyBoolean from the Slicer 2 cvs<br>
- vtkImplicitPolyData from <a href="http://www.science.uva.nl/%7Edshamoni/Boolean/" target="_blank">http://www.science.uva.nl/~dshamoni/Boolean/</a><br>
- vtkBooleanStructuredPoints ( obsolete and as the name says just for<br>
structured points)<br>
- vtkImplicitBoolean which doesn't handle PolyData ?!<br>
<br>
But after a day of testing i still haven't found a method which works
:-/<br>
<br>
Anybody done that before ? Any hints ?<br>
<br>
<br>
Thanks in advance,<br>
Stefan<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote>
</div>
<br>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br>