<p>Hi Goodwin Lawlor</p>
<p>Thanks for advising the solution. I am trying to use this class, but I am getting errors. As this class is not available through VTK, I have tried few options but still unsuccessful. Please help me how to use this class into my codse.
</p>
<p>I am using VTK 5.0 and Visual Studio 6 for development. Here is the detail how I tried to use it.</p>
<p>(1) I included the files vtkCollisionDetectionFilter.h and vtkCollisionDetectionFilter.cxx into my project, I got the error like here:</p>
<p>"vtkcollisiondetectionfilter.cxx(794) : fatal error C1010: unexpected end of file while looking for precompiled header directive"</p>
<p>(2) then I downloaded "vtkBioeng.zip" from the link you directed, I had built the project successfully by getting "vtkBioeng.lib" and "vtkBioeng.dll". After this I added the name of "
vtkBioeng.lib" alongwith the other VTK libs in my project settting. I copied "vtkBioeng.dll" into folder having all VTK dll's. Now the application compiles and links successfully, but as I run it, the program crashes, I found that crashing starts at:
</p>
<p>vtkCollisionDetectionFilter *collide = vtkCollisionDetectionFilter::New();</p>
<p>this shows that "vtkCollisionDetectionFilter" can not be instatiated.</p>
<p>Can you please tell me steps how to use this class into my project.</p>
<p>Thank a lot.</p>
<p>MIRG</p>
<p>>Message: 3<br>>Date: Tue, 20 Mar 2007 21:21:36 +0000<br>>From: Goodwin Lawlor <<a href="mailto:goodwin.lawlor@ucd.ie">goodwin.lawlor@ucd.ie</a>><br>>Subject: [vtkusers] Re: Boolean Operations for STL objects
<br>>To: <a href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</a><br>>Message-ID: <<a href="mailto:etpj8u$dtm$1@sea.gmane.org">etpj8u$dtm$1@sea.gmane.org</a>><br>>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
</p>
<p>>MIRG UTM wrote:<br>>> Hi VTK Gurus<br>>><br>>> I have two STL objects and want to subtract one from the other. Can<br>>> someone please help me how to do this.<br>>><br>>> Is there any possibility of using Boolean Operations (DIFFERENCE,
<br>>> UNION and INTERSECTION) for PolyData objects in VTK ?<br>>><br>>> Thanks in advance.<br>>><br>>> MIRG</p>
<p>>HI MIRG,</p>
<p>>You could try using the collision detection class here<br>><a href="http://vtkbioeng.cvs.sourceforge.net/*checkout*/vtkbioeng/vtkbioeng/vtkCollisionDetectionFilter.cxx">http://vtkbioeng.cvs.sourceforge.net/*checkout*/vtkbioeng/vtkbioeng/vtkCollisionDetectionFilter.cxx
</a><br>><a href="http://vtkbioeng.cvs.sourceforge.net/*checkout*/vtkbioeng/vtkbioeng/vtkCollisionDetectionFilter.h">http://vtkbioeng.cvs.sourceforge.net/*checkout*/vtkbioeng/vtkbioeng/vtkCollisionDetectionFilter.h</a>
</p>
<p>>like its used here<br>><a href="http://vtkbioeng.cvs.sourceforge.net/*checkout*/vtkbioeng/vtkbioeng/Testing/Cxx/TestCollisionDetection1.cxx">http://vtkbioeng.cvs.sourceforge.net/*checkout*/vtkbioeng/vtkbioeng/Testing/Cxx/TestCollisionDetection1.cxx
</a></p>
<p>>to clip one polygonal surface from the other.</p>
<p>>hth</p>
<p>>Goodwin<br></p>