MarSTDv2004: CCsg2D.h Source File

MarSTDv2004

CCsg2D.h

Go to the documentation of this file.
00001 #ifndef __CCsg2D_h__
00002 #define __CCsg2D_h__
00003 
00005 // MarSTD version 2004 - (c)2004 - Marcel Smit                      //
00006 //                                                                  //
00007 // [email protected]                                      //
00008 // [email protected]                                          //
00009 //                                                                  //
00010 // This code may not be used in a commercial product without my     //
00011 // permission. If you redistribute it, this message must remain     //
00012 // intact. If you use this code, some acknowledgement would be      //
00013 // appreciated. ;-)                                                 //
00015 
00017 
00018 
00019 
00020 #include "CPlane.h"
00021 #include "CPoly.h"
00022 
00023 //---------------------------------------------------------------------------
00024 
00026 
00066 class CCsg2D
00067 {
00068 
00069         private:
00070         
00071         CCsg2D();
00072         
00073         public:
00074         
00075         ~CCsg2D();
00076         
00077         public:
00078         
00082         static CCsg2D& I()
00083         {
00084                 static CCsg2D csg2D;
00085                 return csg2D;
00086         }
00087         
00088         public:
00089 
00090         void addition(CPoly* poly1, CPoly* poly2, CMesh* out); 
00091         void subtraction(CPoly* poly1, CPoly* poly2, CMesh* out); 
00092         void intersection(CPoly* poly1, CPoly* poly2, CPoly* out); 
00093         void exclusiveor(CPoly* poly1, CPoly* poly2, CMesh* out); 
00094 
00095 };
00096 
00097 #endif

Generated on Tue Feb 8 21:59:02 2005 for MarSTDv2004 by  doxygen 1.4.1