[vtkusers] Re: Boolean Operations for STL objects (Goodwin Lawlor)

Goodwin Lawlor goodwin.lawlor at ucd.ie
Tue Mar 27 04:26:09 EDT 2007


MIRG wrote:
> Hi Goodwin Lawlor
> 
> 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.
> 
> I am using VTK 5.0 and Visual Studio 6 for development. Here is the 
> detail how I tried to use it.
> 
> (1) I included the files vtkCollisionDetectionFilter.h and 
> vtkCollisionDetectionFilter.cxx into my project, I got the error like here:
> 
> "vtkcollisiondetectionfilter.cxx(794) : fatal error C1010: unexpected 
> end of file while looking for precompiled header directive"
> 
> (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:
> 
> vtkCollisionDetectionFilter *collide = vtkCollisionDetectionFilter::New();
> 
> this shows that "vtkCollisionDetectionFilter" can not be instatiated.
> 
> Can you please tell me steps how to use this class into my project.
> 
> Thank a lot.
> 
> MIRG

Hi MIRG,

That was VTK4.x code you downloaded from the website - I meant (see 
below) for you to get the CVS version from sourceforge. You can get the 
cmake-ready package for VTK5 from here:

http://sourceforge.net/project/showfiles.php?group_id=165118&package_id=187150&release_id=489450

hth

Goodwin


>  >Message: 3
>  >Date: Tue, 20 Mar 2007 21:21:36 +0000
>  >From: Goodwin Lawlor <goodwin.lawlor at ucd.ie 
> <mailto:goodwin.lawlor at ucd.ie>>
>  >Subject: [vtkusers] Re: Boolean Operations for STL objects
>  >To: vtkusers at public.kitware.com <mailto:vtkusers at public.kitware.com>
>  >Message-ID: <etpj8u$dtm$1 at sea.gmane.org 
> <mailto:etpj8u$dtm$1 at sea.gmane.org>>
>  >Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
>  >MIRG UTM wrote:
>  >> Hi VTK Gurus
>  >>
>  >> I have two STL objects and want to subtract one from the other. Can
>  >> someone please help me how to do this.
>  >>
>  >> Is there any possibility of using Boolean Operations (DIFFERENCE,
>  >> UNION and INTERSECTION) for PolyData objects in VTK ?
>  >>
>  >> Thanks in advance.
>  >>
>  >> MIRG
> 
>  >HI MIRG,
> 
>  >You could try using the collision detection class here
>  >http://vtkbioeng.cvs.sourceforge.net/*checkout*/vtkbioeng/vtkbioeng/vtkCollisionDetectionFilter.cxx 
> <http://vtkbioeng.cvs.sourceforge.net/*checkout*/vtkbioeng/vtkbioeng/vtkCollisionDetectionFilter.cxx>
>  >http://vtkbioeng.cvs.sourceforge.net/*checkout*/vtkbioeng/vtkbioeng/vtkCollisionDetectionFilter.h 
> 
> 
>  >like its used here
>  >http://vtkbioeng.cvs.sourceforge.net/*checkout*/vtkbioeng/vtkbioeng/Testing/Cxx/TestCollisionDetection1.cxx 
> <http://vtkbioeng.cvs.sourceforge.net/*checkout*/vtkbioeng/vtkbioeng/Testing/Cxx/TestCollisionDetection1.cxx>
> 
>  >to clip one polygonal surface from the other.
> 
>  >hth
> 
>  >Goodwin
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list