File indexing completed on 2025-01-18 10:03:11
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepFeat_RibSlot_HeaderFile
0018 #define _BRepFeat_RibSlot_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <gp_Pnt.hxx>
0025 #include <TopTools_DataMapOfShapeListOfShape.hxx>
0026 #include <TopoDS_Shape.hxx>
0027 #include <BRepFeat_PerfSelection.hxx>
0028 #include <TopoDS_Wire.hxx>
0029 #include <TopoDS_Face.hxx>
0030 #include <TopTools_DataMapOfShapeShape.hxx>
0031 #include <TopTools_ListOfShape.hxx>
0032 #include <BRepFeat_StatusError.hxx>
0033 #include <BRepBuilderAPI_MakeShape.hxx>
0034 #include <Standard_Integer.hxx>
0035 class TopoDS_Edge;
0036 class Geom_Plane;
0037 class gp_Dir;
0038 class Geom_Curve;
0039 class TopoDS_Vertex;
0040 class LocOpe_Gluer;
0041 class BRepAlgoAPI_BooleanOperation;
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055 class BRepFeat_RibSlot : public BRepBuilderAPI_MakeShape
0056 {
0057 public:
0058
0059 DEFINE_STANDARD_ALLOC
0060
0061
0062
0063 Standard_EXPORT virtual Standard_Boolean IsDeleted (const TopoDS_Shape& F) Standard_OVERRIDE;
0064
0065
0066 Standard_EXPORT virtual const TopTools_ListOfShape& Modified (const TopoDS_Shape& F) Standard_OVERRIDE;
0067
0068
0069 Standard_EXPORT virtual const TopTools_ListOfShape& Generated (const TopoDS_Shape& S) Standard_OVERRIDE;
0070
0071
0072
0073 Standard_EXPORT const TopTools_ListOfShape& FirstShape() const;
0074
0075
0076
0077 Standard_EXPORT const TopTools_ListOfShape& LastShape() const;
0078
0079
0080
0081
0082
0083
0084
0085 Standard_EXPORT const TopTools_ListOfShape& FacesForDraft() const;
0086
0087
0088
0089
0090
0091 Standard_EXPORT const TopTools_ListOfShape& NewEdges() const;
0092
0093
0094
0095
0096
0097
0098
0099
0100
0101
0102 Standard_EXPORT const TopTools_ListOfShape& TgtEdges() const;
0103
0104 Standard_EXPORT static Standard_Real IntPar (const Handle(Geom_Curve)& C, const gp_Pnt& P);
0105
0106 Standard_EXPORT static TopoDS_Face ChoiceOfFaces (TopTools_ListOfShape& faces, const Handle(Geom_Curve)& cc, const Standard_Real par, const Standard_Real bnd, const Handle(Geom_Plane)& Pln);
0107
0108 Standard_EXPORT BRepFeat_StatusError CurrentStatusError() const;
0109
0110
0111
0112
0113 protected:
0114
0115
0116
0117 BRepFeat_RibSlot();
0118
0119
0120 Standard_EXPORT void LFPerform();
0121
0122 Standard_EXPORT gp_Pnt CheckPoint (const TopoDS_Edge& e, const Standard_Real bnd, const Handle(Geom_Plane)& Pln);
0123
0124 Standard_EXPORT gp_Dir Normal (const TopoDS_Face& F, const gp_Pnt& P);
0125
0126 Standard_EXPORT void EdgeExtention (TopoDS_Edge& e, const Standard_Real bnd, const Standard_Boolean FirstLast);
0127
0128 Standard_EXPORT Standard_Real HeightMax (const TopoDS_Shape& theSbase, const TopoDS_Shape& theSUntil, gp_Pnt& p1, gp_Pnt& p2);
0129
0130 Standard_EXPORT Standard_Boolean ExtremeFaces (const Standard_Boolean RevolRib, const Standard_Real bnd, const Handle(Geom_Plane)& Pln, TopoDS_Edge& FirstEdge, TopoDS_Edge& LastEdge, TopoDS_Face& FirstFace, TopoDS_Face& LastFace, TopoDS_Vertex& FirstVertex, TopoDS_Vertex& LastVertex, Standard_Boolean& OnFirstFace, Standard_Boolean& OnLastFace, Standard_Boolean& PtOnFirstEdge, Standard_Boolean& PtOnLastEdge, TopoDS_Edge& OnFirstEdge, TopoDS_Edge& OnLastEdge);
0131
0132 Standard_EXPORT void PtOnEdgeVertex (const Standard_Boolean RevolRib, const TopoDS_Shape& shape, const gp_Pnt& point, const TopoDS_Vertex& FirstVertex, const TopoDS_Vertex& LastVertex, Standard_Boolean& PtOnEdge, TopoDS_Edge& OnEdge, Standard_Boolean& PtOnVertex, TopoDS_Vertex& OnVertex);
0133
0134 Standard_EXPORT Standard_Boolean SlidingProfile (TopoDS_Face& Prof, const Standard_Boolean RevolRib, const Standard_Real myTol, Standard_Integer& Concavite, const Handle(Geom_Plane)& myPln, const TopoDS_Face& BndFace, const gp_Pnt& CheckPnt, const TopoDS_Face& FirstFace, const TopoDS_Face& LastFace, const TopoDS_Vertex& FirstVertex, const TopoDS_Vertex& LastVertex, const TopoDS_Edge& FirstEdge, const TopoDS_Edge& LastEdge);
0135
0136 Standard_EXPORT Standard_Boolean NoSlidingProfile (TopoDS_Face& Prof, const Standard_Boolean RevolRib, const Standard_Real myTol, Standard_Integer& Concavite, const Handle(Geom_Plane)& myPln, const Standard_Real bnd, const TopoDS_Face& BndFace, const gp_Pnt& CheckPnt, const TopoDS_Face& FirstFace, const TopoDS_Face& LastFace, const TopoDS_Vertex& FirstVertex, const TopoDS_Vertex& LastVertex, const TopoDS_Edge& FirstEdge, const TopoDS_Edge& LastEdge, const Standard_Boolean OnFirstFace, const Standard_Boolean OnLastFace);
0137
0138
0139
0140
0141 Standard_EXPORT void UpdateDescendants (const LocOpe_Gluer& G);
0142
0143 Standard_EXPORT void UpdateDescendants (const BRepAlgoAPI_BooleanOperation& aBOP, const TopoDS_Shape& SResult, const Standard_Boolean SkipFace = Standard_False);
0144
0145
0146 gp_Pnt myFirstPnt;
0147 gp_Pnt myLastPnt;
0148 Standard_Boolean myFuse;
0149 Standard_Boolean mySliding;
0150 TopTools_DataMapOfShapeListOfShape myMap;
0151 TopTools_DataMapOfShapeListOfShape myLFMap;
0152 TopoDS_Shape myFShape;
0153 TopoDS_Shape myLShape;
0154 BRepFeat_PerfSelection myPerfSelection;
0155 TopoDS_Wire myWire;
0156 TopoDS_Shape mySbase;
0157 TopoDS_Face mySkface;
0158 TopoDS_Face myPbase;
0159 TopoDS_Shape myGShape;
0160 TopoDS_Shape mySUntil;
0161 TopTools_DataMapOfShapeShape myGluedF;
0162 TopTools_ListOfShape myNewEdges;
0163 TopTools_ListOfShape myTgtEdges;
0164 TopTools_ListOfShape myFacesForDraft;
0165 BRepFeat_StatusError myStatusError;
0166
0167
0168 private:
0169
0170
0171
0172
0173
0174 };
0175
0176
0177 #include <BRepFeat_RibSlot.lxx>
0178
0179
0180
0181
0182
0183 #endif