Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-15 09:16:59

0001 // Created on: 2000-08-31
0002 // Created by: Andrey BETENEV
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _ShapeProcess_OperLibrary_HeaderFile
0017 #define _ShapeProcess_OperLibrary_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022 
0023 #include <TopoDS_Shape.hxx>
0024 #include <TopTools_ShapeMapHasher.hxx>
0025 #include <NCollection_DataMap.hxx>
0026 class TopoDS_Shape;
0027 class ShapeProcess_ShapeContext;
0028 class BRepTools_Modification;
0029 class ShapeExtend_MsgRegistrator;
0030 
0031 //! Provides a set of following operators
0032 //!
0033 //! DirectFaces
0034 //! FixShape
0035 //! SameParameter
0036 //! SetTolerance
0037 //! SplitAngle
0038 //! BSplineRestriction
0039 //! ElementaryToRevolution
0040 //! SurfaceToBSpline
0041 //! ToBezier
0042 //! SplitContinuity
0043 //! SplitClosedFaces
0044 //! FixWireGaps
0045 //! FixFaceSize
0046 //! DropSmallEdges
0047 //! FixShape
0048 //! SplitClosedEdges
0049 class ShapeProcess_OperLibrary
0050 {
0051 public:
0052   DEFINE_STANDARD_ALLOC
0053 
0054   //! Registers all the operators
0055   Standard_EXPORT static void Init();
0056 
0057   //! Applies BRepTools_Modification to a shape,
0058   //! taking into account sharing of components of compounds.
0059   //! if theMutableInput vat is set to true then input shape S
0060   //! can be modified during the modification process.
0061   Standard_EXPORT static TopoDS_Shape ApplyModifier(
0062     const TopoDS_Shape&                                                       S,
0063     const occ::handle<ShapeProcess_ShapeContext>&                             context,
0064     const occ::handle<BRepTools_Modification>&                                M,
0065     NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher>& map,
0066     const occ::handle<ShapeExtend_MsgRegistrator>&                            msg = nullptr,
0067     bool theMutableInput                                                          = false);
0068 };
0069 
0070 #endif // _ShapeProcess_OperLibrary_HeaderFile