|
||||
File indexing completed on 2025-01-18 10:03:06
0001 // Created on: 1995-09-01 0002 // Created by: Yves FRICAUD 0003 // Copyright (c) 1995-1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _BRepAlgo_FaceRestrictor_HeaderFile 0018 #define _BRepAlgo_FaceRestrictor_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 0023 #include <TopoDS_Face.hxx> 0024 #include <TopTools_DataMapOfShapeListOfShape.hxx> 0025 class TopoDS_Wire; 0026 0027 0028 //! Builds all the faces limited with a set of non 0029 //! jointing and planars wires. if 0030 //! <ControlOrientation> is false The Wires must have 0031 //! correct orientations. Sinon orientation des wires 0032 //! de telle sorte que les faces ne soient pas infinies 0033 //! et qu'elles soient disjointes. 0034 class BRepAlgo_FaceRestrictor 0035 { 0036 public: 0037 0038 DEFINE_STANDARD_ALLOC 0039 0040 0041 Standard_EXPORT BRepAlgo_FaceRestrictor(); 0042 0043 //! the surface of <F> will be the surface of each new 0044 //! faces built. 0045 //! <Proj> is used to update pcurves on edges if necessary. 0046 //! See Add(). 0047 Standard_EXPORT void Init (const TopoDS_Face& F, const Standard_Boolean Proj = Standard_False, const Standard_Boolean ControlOrientation = Standard_False); 0048 0049 //! Add the wire <W> to the set of wires. 0050 //! 0051 //! Warning: 0052 //! The Wires must be closed. 0053 //! 0054 //! The edges of <W> can be modified if they have not pcurves 0055 //! on the surface <S> of <F>. In this case 0056 //! if <Proj> is false the first pcurve of the edge 0057 //! is positionned on <S>. 0058 //! if <Proj> is True ,the Pcurve On <S> is the 0059 //! projection of the curve 3d on <F>. 0060 Standard_EXPORT void Add (TopoDS_Wire& W); 0061 0062 //! Removes all the Wires 0063 Standard_EXPORT void Clear(); 0064 0065 //! Evaluate all the faces limited by the set of Wires. 0066 Standard_EXPORT void Perform(); 0067 0068 Standard_EXPORT Standard_Boolean IsDone() const; 0069 0070 Standard_EXPORT Standard_Boolean More() const; 0071 0072 Standard_EXPORT void Next(); 0073 0074 Standard_EXPORT TopoDS_Face Current() const; 0075 0076 0077 0078 0079 protected: 0080 0081 0082 0083 0084 0085 private: 0086 0087 0088 //! Evaluate all the faces limited by the set of Wires. 0089 Standard_EXPORT void PerformWithCorrection(); 0090 0091 0092 Standard_Boolean myDone; 0093 Standard_Boolean modeProj; 0094 TopoDS_Face myFace; 0095 TopTools_ListOfShape wires; 0096 TopTools_ListOfShape faces; 0097 Standard_Boolean myCorrection; 0098 TopTools_DataMapOfShapeListOfShape keyIsIn; 0099 TopTools_DataMapOfShapeListOfShape keyContains; 0100 0101 0102 }; 0103 0104 0105 0106 0107 0108 0109 0110 #endif // _BRepAlgo_FaceRestrictor_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |