|
|
|||
File indexing completed on 2026-09-15 09:14:59
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 <TopoDS_Shape.hxx> 0025 #include <NCollection_List.hxx> 0026 #include <TopTools_ShapeMapHasher.hxx> 0027 #include <NCollection_DataMap.hxx> 0028 class TopoDS_Wire; 0029 0030 //! Builds all the faces limited with a set of non 0031 //! jointing and planars wires. 0032 //! if <ControlOrientation> is false The Wires must have 0033 //! correct orientations. Sinon orientation des wires 0034 //! de telle sorte que les faces ne soient pas infinies 0035 //! et qu'elles soient disjointes. 0036 class BRepAlgo_FaceRestrictor 0037 { 0038 public: 0039 DEFINE_STANDARD_ALLOC 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, 0048 const bool Proj = false, 0049 const bool ControlOrientation = false); 0050 0051 //! Add the wire <W> to the set of wires. 0052 //! 0053 //! Warning: 0054 //! The Wires must be closed. 0055 //! 0056 //! The edges of <W> can be modified if they don't have 0057 //! pcurves on the surface <S> of <F>. In this case 0058 //! if <Proj> is false the first pcurve of the edge 0059 //! is positioned on <S>. 0060 //! if <Proj> is True, the Pcurve On <S> is the 0061 //! projection of the curve 3d on <F>. 0062 Standard_EXPORT void Add(TopoDS_Wire& W); 0063 0064 //! Removes all the Wires 0065 Standard_EXPORT void Clear(); 0066 0067 //! Evaluate all the faces limited by the set of Wires. 0068 Standard_EXPORT void Perform(); 0069 0070 Standard_EXPORT bool IsDone() const; 0071 0072 Standard_EXPORT bool More() const; 0073 0074 Standard_EXPORT void Next(); 0075 0076 Standard_EXPORT TopoDS_Face Current() const; 0077 0078 private: 0079 //! Evaluate all the faces limited by the set of Wires. 0080 Standard_EXPORT void PerformWithCorrection(); 0081 0082 bool myDone; 0083 bool modeProj; 0084 TopoDS_Face myFace; 0085 NCollection_List<TopoDS_Shape> wires; 0086 NCollection_List<TopoDS_Shape> faces; 0087 bool myCorrection; 0088 NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher> 0089 keyIsIn; 0090 NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher> 0091 keyContains; 0092 }; 0093 0094 #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 |
|