1 // Created on: 1993-07-21
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _BRepLib_MakeShape_HeaderFile
18 #define _BRepLib_MakeShape_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <TopoDS_Shape.hxx>
25 #include <TopTools_ListOfShape.hxx>
26 #include <BRepLib_Command.hxx>
27 #include <BRepLib_ShapeModification.hxx>
28 #include <Standard_Boolean.hxx>
29 #include <Standard_Integer.hxx>
30 class StdFail_NotDone;
36 //! This is the root class for all shape
37 //! constructions. It stores the result.
39 //! It provides deferred methods to trace the history
41 class BRepLib_MakeShape : public BRepLib_Command
48 //! This is called by Shape(). It does nothing but
50 Standard_EXPORT void Build();
52 Standard_EXPORT const TopoDS_Shape& Shape();
53 Standard_EXPORT operator TopoDS_Shape();
55 //! returns the status of the Face after
56 //! the shape creation.
57 Standard_EXPORT virtual BRepLib_ShapeModification FaceStatus (const TopoDS_Face& F) const;
59 //! Returns True if the Face generates new topology.
60 Standard_EXPORT virtual Standard_Boolean HasDescendants (const TopoDS_Face& F) const;
62 //! returns the list of generated Faces.
63 Standard_EXPORT virtual const TopTools_ListOfShape& DescendantFaces (const TopoDS_Face& F);
65 //! returns the number of surfaces
66 //! after the shape creation.
67 Standard_EXPORT virtual Standard_Integer NbSurfaces() const;
69 //! Return the faces created for surface I.
70 Standard_EXPORT virtual const TopTools_ListOfShape& NewFaces (const Standard_Integer I);
72 //! returns a list of the created faces
73 //! from the edge <E>.
74 Standard_EXPORT virtual const TopTools_ListOfShape& FacesFromEdges (const TopoDS_Edge& E);
82 Standard_EXPORT BRepLib_MakeShape();
86 TopTools_ListOfShape myGenFaces;
87 TopTools_ListOfShape myNewFaces;
88 TopTools_ListOfShape myEdgFaces;
105 #endif // _BRepLib_MakeShape_HeaderFile