File indexing completed on 2025-01-18 10:03:16
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepPrim_Builder_HeaderFile
0018 #define _BRepPrim_Builder_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <BRep_Builder.hxx>
0024 class TopoDS_Shell;
0025 class TopoDS_Face;
0026 class gp_Pln;
0027 class TopoDS_Wire;
0028 class TopoDS_Edge;
0029 class gp_Lin;
0030 class gp_Circ;
0031 class gp_Lin2d;
0032 class gp_Circ2d;
0033 class TopoDS_Vertex;
0034 class gp_Pnt;
0035
0036
0037
0038 class BRepPrim_Builder
0039 {
0040 public:
0041
0042 DEFINE_STANDARD_ALLOC
0043
0044
0045
0046
0047 Standard_EXPORT BRepPrim_Builder();
0048
0049
0050 Standard_EXPORT BRepPrim_Builder(const BRep_Builder& B);
0051
0052 const BRep_Builder& Builder() const;
0053
0054
0055 Standard_EXPORT void MakeShell (TopoDS_Shell& S) const;
0056
0057
0058
0059 Standard_EXPORT void MakeFace (TopoDS_Face& F, const gp_Pln& P) const;
0060
0061
0062 Standard_EXPORT void MakeWire (TopoDS_Wire& W) const;
0063
0064
0065 Standard_EXPORT void MakeDegeneratedEdge (TopoDS_Edge& E) const;
0066
0067
0068
0069 Standard_EXPORT void MakeEdge (TopoDS_Edge& E, const gp_Lin& L) const;
0070
0071
0072
0073 Standard_EXPORT void MakeEdge (TopoDS_Edge& E, const gp_Circ& C) const;
0074
0075
0076
0077
0078 Standard_EXPORT void SetPCurve (TopoDS_Edge& E, const TopoDS_Face& F, const gp_Lin2d& L) const;
0079
0080
0081
0082
0083 Standard_EXPORT void SetPCurve (TopoDS_Edge& E, const TopoDS_Face& F, const gp_Lin2d& L1, const gp_Lin2d& L2) const;
0084
0085
0086
0087
0088 Standard_EXPORT void SetPCurve (TopoDS_Edge& E, const TopoDS_Face& F, const gp_Circ2d& C) const;
0089
0090
0091 Standard_EXPORT void MakeVertex (TopoDS_Vertex& V, const gp_Pnt& P) const;
0092
0093
0094 Standard_EXPORT void ReverseFace (TopoDS_Face& F) const;
0095
0096
0097
0098
0099 Standard_EXPORT void AddEdgeVertex (TopoDS_Edge& E, const TopoDS_Vertex& V, const Standard_Real P, const Standard_Boolean direct) const;
0100
0101
0102
0103
0104 Standard_EXPORT void AddEdgeVertex (TopoDS_Edge& E, const TopoDS_Vertex& V, const Standard_Real P1, const Standard_Real P2) const;
0105
0106
0107
0108 Standard_EXPORT void SetParameters (TopoDS_Edge& E, const TopoDS_Vertex& V, const Standard_Real P1, const Standard_Real P2) const;
0109
0110
0111
0112 Standard_EXPORT void AddWireEdge (TopoDS_Wire& W, const TopoDS_Edge& E, const Standard_Boolean direct) const;
0113
0114
0115 Standard_EXPORT void AddFaceWire (TopoDS_Face& F, const TopoDS_Wire& W) const;
0116
0117
0118 Standard_EXPORT void AddShellFace (TopoDS_Shell& Sh, const TopoDS_Face& F) const;
0119
0120
0121
0122 Standard_EXPORT void CompleteEdge (TopoDS_Edge& E) const;
0123
0124
0125
0126 Standard_EXPORT void CompleteWire (TopoDS_Wire& W) const;
0127
0128
0129
0130 Standard_EXPORT void CompleteFace (TopoDS_Face& F) const;
0131
0132
0133
0134 Standard_EXPORT void CompleteShell (TopoDS_Shell& S) const;
0135
0136
0137
0138
0139 protected:
0140
0141
0142
0143
0144
0145 private:
0146
0147
0148
0149 BRep_Builder myBuilder;
0150
0151
0152 };
0153
0154
0155 #include <BRepPrim_Builder.lxx>
0156
0157
0158
0159
0160
0161 #endif