File indexing completed on 2025-01-18 10:03:15
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepOffsetAPI_MakeOffset_HeaderFile
0018 #define _BRepOffsetAPI_MakeOffset_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <TopoDS_Face.hxx>
0024 #include <TopTools_ListOfShape.hxx>
0025 #include <BRepFill_ListOfOffsetWire.hxx>
0026 #include <BRepBuilderAPI_MakeShape.hxx>
0027 class TopoDS_Wire;
0028 class TopoDS_Shape;
0029
0030
0031
0032
0033
0034
0035
0036
0037 class BRepOffsetAPI_MakeOffset : public BRepBuilderAPI_MakeShape
0038 {
0039 public:
0040
0041 DEFINE_STANDARD_ALLOC
0042
0043
0044
0045 Standard_EXPORT BRepOffsetAPI_MakeOffset();
0046
0047
0048
0049 Standard_EXPORT BRepOffsetAPI_MakeOffset(const TopoDS_Face& Spine, const GeomAbs_JoinType Join = GeomAbs_Arc, const Standard_Boolean IsOpenResult = Standard_False);
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059 Standard_EXPORT void Init (const TopoDS_Face& Spine, const GeomAbs_JoinType Join = GeomAbs_Arc, const Standard_Boolean IsOpenResult = Standard_False);
0060
0061 Standard_EXPORT BRepOffsetAPI_MakeOffset(const TopoDS_Wire& Spine, const GeomAbs_JoinType Join = GeomAbs_Arc, const Standard_Boolean IsOpenResult = Standard_False);
0062
0063
0064 Standard_EXPORT void Init (const GeomAbs_JoinType Join = GeomAbs_Arc, const Standard_Boolean IsOpenResult = Standard_False);
0065
0066
0067
0068
0069 Standard_EXPORT void SetApprox (const Standard_Boolean ToApprox);
0070
0071
0072 Standard_EXPORT void AddWire (const TopoDS_Wire& Spine);
0073
0074
0075
0076
0077
0078 Standard_EXPORT void Perform (const Standard_Real Offset, const Standard_Real Alt = 0.0);
0079
0080
0081 Standard_EXPORT virtual void Build(const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
0082
0083
0084
0085 Standard_EXPORT virtual const TopTools_ListOfShape& Generated (const TopoDS_Shape& S) Standard_OVERRIDE;
0086
0087
0088
0089 Standard_EXPORT static TopoDS_Face ConvertFace (const TopoDS_Face& theFace,
0090 const Standard_Real theAngleTolerance);
0091
0092
0093 protected:
0094
0095
0096
0097
0098
0099 private:
0100
0101
0102
0103 Standard_Boolean myIsInitialized;
0104 Standard_Boolean myLastIsLeft;
0105 GeomAbs_JoinType myJoin;
0106 Standard_Boolean myIsOpenResult;
0107 Standard_Boolean myIsToApprox;
0108 TopoDS_Face myFace;
0109 TopTools_ListOfShape myWires;
0110 BRepFill_ListOfOffsetWire myLeft;
0111 BRepFill_ListOfOffsetWire myRight;
0112
0113
0114 };
0115
0116
0117
0118
0119
0120
0121
0122 #endif