File indexing completed on 2025-01-18 10:05:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _TopOpeBRepBuild_CorrectFace2d_HeaderFile
0017 #define _TopOpeBRepBuild_CorrectFace2d_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022
0023 #include <TopoDS_Face.hxx>
0024 #include <Standard_Integer.hxx>
0025 #include <TopoDS_Wire.hxx>
0026 #include <TopTools_ListOfShape.hxx>
0027 #include <TopTools_IndexedMapOfOrientedShape.hxx>
0028 #include <TopTools_IndexedDataMapOfShapeShape.hxx>
0029 class TopoDS_Edge;
0030 class gp_Pnt2d;
0031 class TopoDS_Shape;
0032 class gp_Vec2d;
0033 class Geom2d_Curve;
0034 class Bnd_Box2d;
0035
0036
0037
0038 class TopOpeBRepBuild_CorrectFace2d
0039 {
0040 public:
0041
0042 DEFINE_STANDARD_ALLOC
0043
0044
0045 Standard_EXPORT TopOpeBRepBuild_CorrectFace2d();
0046
0047 Standard_EXPORT TopOpeBRepBuild_CorrectFace2d(const TopoDS_Face& aFace, const TopTools_IndexedMapOfOrientedShape& anAvoidMap, TopTools_IndexedDataMapOfShapeShape& aMap);
0048
0049 Standard_EXPORT const TopoDS_Face& Face() const;
0050
0051 Standard_EXPORT void Perform();
0052
0053 Standard_EXPORT Standard_Boolean IsDone() const;
0054
0055 Standard_EXPORT Standard_Integer ErrorStatus() const;
0056
0057 Standard_EXPORT const TopoDS_Face& CorrectedFace() const;
0058
0059 Standard_EXPORT void SetMapOfTrans2dInfo (TopTools_IndexedDataMapOfShapeShape& aMap);
0060
0061 Standard_EXPORT TopTools_IndexedDataMapOfShapeShape& MapOfTrans2dInfo();
0062
0063 Standard_EXPORT static void GetP2dFL (const TopoDS_Face& aFace, const TopoDS_Edge& anEdge, gp_Pnt2d& P2dF, gp_Pnt2d& P2dL);
0064
0065 Standard_EXPORT static void CheckList (const TopoDS_Face& aFace, TopTools_ListOfShape& aHeadList);
0066
0067
0068
0069
0070 protected:
0071
0072
0073
0074
0075
0076 private:
0077
0078
0079 Standard_EXPORT void CheckFace();
0080
0081 Standard_EXPORT Standard_Integer MakeRightWire();
0082
0083 Standard_EXPORT void MakeHeadList (const TopoDS_Shape& aFirstEdge, TopTools_ListOfShape& aHeadList) const;
0084
0085 Standard_EXPORT void TranslateCurve2d (const TopoDS_Edge& anEdge, const TopoDS_Face& aFace, const gp_Vec2d& aTranslateVec, Handle(Geom2d_Curve)& aCurve2d);
0086
0087 Standard_EXPORT Standard_Integer OuterWire (TopoDS_Wire& anOuterWire) const;
0088
0089 Standard_EXPORT void BndBoxWire (const TopoDS_Wire& aWire, Bnd_Box2d& aB2d) const;
0090
0091 Standard_EXPORT void MoveWire2d (TopoDS_Wire& aWire, const gp_Vec2d& aTrV);
0092
0093 Standard_EXPORT void MoveWires2d (TopoDS_Wire& aWire);
0094
0095 Standard_EXPORT void UpdateEdge (const TopoDS_Edge& E, const Handle(Geom2d_Curve)& C, const TopoDS_Face& F, const Standard_Real Tol);
0096
0097 Standard_EXPORT void UpdateEdge (const TopoDS_Edge& E, const Handle(Geom2d_Curve)& C1, const Handle(Geom2d_Curve)& C2, const TopoDS_Face& F, const Standard_Real Tol);
0098
0099 Standard_EXPORT void BuildCopyData (const TopoDS_Face& F, const TopTools_IndexedMapOfOrientedShape& anAvoidMap, TopoDS_Face& aCopyFace, TopTools_IndexedMapOfOrientedShape& aCopyAvoidMap, const Standard_Boolean aNeedToUsePMap);
0100
0101 Standard_EXPORT Standard_Integer ConnectWire (TopoDS_Face& aCopyFace, const TopTools_IndexedMapOfOrientedShape& aCopyAvoidMap, const Standard_Boolean aTryToConnectFlag);
0102
0103
0104 TopoDS_Face myFace;
0105 TopoDS_Face myCorrectedFace;
0106 Standard_Boolean myIsDone;
0107 Standard_Integer myErrorStatus;
0108 Standard_Real myFaceTolerance;
0109 TopoDS_Wire myCurrentWire;
0110 TopTools_ListOfShape myOrderedWireList;
0111 TopTools_IndexedMapOfOrientedShape myAvoidMap;
0112 Standard_Address myMap;
0113 TopoDS_Face myCopyFace;
0114 TopTools_IndexedMapOfOrientedShape myCopyAvoidMap;
0115 TopTools_IndexedDataMapOfShapeShape myEdMapInversed;
0116
0117
0118 };
0119
0120
0121
0122
0123
0124
0125
0126 #endif