1 // GEOM PARTITION : partition algorithm
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : Partition_Loop3d.hxx
10 #ifndef _Partition_Loop3d_HeaderFile
11 #define _Partition_Loop3d_HeaderFile
13 #ifndef _TopTools_ListOfShape_HeaderFile
14 #include <TopTools_ListOfShape.hxx>
16 #ifndef _TopTools_IndexedDataMapOfShapeListOfShape_HeaderFile
17 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
19 #ifndef _Standard_Boolean_HeaderFile
20 #include <Standard_Boolean.hxx>
22 #ifndef _Standard_Real_HeaderFile
23 #include <Standard_Real.hxx>
26 class TopTools_ListOfShape;
27 class TopTools_MapOfOrientedShape;
33 #ifndef _Standard_HeaderFile
34 #include <Standard.hxx>
36 #ifndef _Standard_Macro_HeaderFile
37 #include <Standard_Macro.hxx>
40 class Partition_Loop3d {
44 void* operator new(size_t,void* anAddress)
48 void* operator new(size_t size)
50 return Standard::Allocate(size);
52 void operator delete(void *anAddress)
54 if (anAddress) Standard::Free((Standard_Address&)anAddress);
58 Standard_EXPORT Partition_Loop3d();
59 Standard_EXPORT void AddConstFaces(const TopoDS_Shape& S) ;
60 Standard_EXPORT void AddSectionFaces(const TopoDS_Shape& S) ;
61 Standard_EXPORT const TopTools_ListOfShape& MakeShells(const TopTools_MapOfOrientedShape& AvoidFacesMap) ;
62 Standard_EXPORT static Standard_Boolean IsInside(const TopoDS_Edge& E,const TopoDS_Face& F1,const TopoDS_Face& F2,const Standard_Boolean CountDot,Standard_Real& Dot,Standard_Boolean& GoodOri) ;
63 Standard_EXPORT static gp_Vec Normal(const TopoDS_Edge& E,const TopoDS_Face& F) ;
87 TopTools_ListOfShape myNewShells;
88 TopTools_ListOfShape myFaces;
89 TopTools_IndexedDataMapOfShapeListOfShape myEFMap;
98 // other Inline functions and methods (like "C++: function call" methods)