[vtkusers] Re: Boolean Operations for STL objects
Goodwin Lawlor
goodwin.lawlor at ucd.ie
Tue Mar 20 17:21:36 EDT 2007
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.h
like its used here
http://vtkbioeng.cvs.sourceforge.net/*checkout*/vtkbioeng/vtkbioeng/Testing/Cxx/TestCollisionDetection1.cxx
to clip one polygonal surface from the other.
hth
Goodwin
More information about the vtkusers
mailing list