File indexing completed on 2026-09-18 09:19:43
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepBuilderAPI_MakeEdge_HeaderFile
0018 #define _BRepBuilderAPI_MakeEdge_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <BRepLib_MakeEdge.hxx>
0025 #include <BRepBuilderAPI_MakeShape.hxx>
0026 #include <Standard_Real.hxx>
0027 #include <BRepBuilderAPI_EdgeError.hxx>
0028 class TopoDS_Vertex;
0029 class gp_Pnt;
0030 class gp_Lin;
0031 class gp_Circ;
0032 class gp_Elips;
0033 class gp_Hypr;
0034 class gp_Parab;
0035 class Geom_Curve;
0036 class Geom2d_Curve;
0037 class Geom_Surface;
0038 class TopoDS_Edge;
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071 class BRepBuilderAPI_MakeEdge : public BRepBuilderAPI_MakeShape
0072 {
0073 public:
0074 DEFINE_STANDARD_ALLOC
0075
0076 Standard_EXPORT BRepBuilderAPI_MakeEdge();
0077
0078 Standard_EXPORT BRepBuilderAPI_MakeEdge(const TopoDS_Vertex& V1, const TopoDS_Vertex& V2);
0079
0080 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Pnt& P1, const gp_Pnt& P2);
0081
0082 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Lin& L);
0083
0084 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Lin& L, const double p1, const double p2);
0085
0086 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Lin& L, const gp_Pnt& P1, const gp_Pnt& P2);
0087
0088 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Lin& L,
0089 const TopoDS_Vertex& V1,
0090 const TopoDS_Vertex& V2);
0091
0092 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Circ& L);
0093
0094 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Circ& L, const double p1, const double p2);
0095
0096 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Circ& L, const gp_Pnt& P1, const gp_Pnt& P2);
0097
0098 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Circ& L,
0099 const TopoDS_Vertex& V1,
0100 const TopoDS_Vertex& V2);
0101
0102 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Elips& L);
0103
0104 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Elips& L, const double p1, const double p2);
0105
0106 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Elips& L, const gp_Pnt& P1, const gp_Pnt& P2);
0107
0108 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Elips& L,
0109 const TopoDS_Vertex& V1,
0110 const TopoDS_Vertex& V2);
0111
0112 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Hypr& L);
0113
0114 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Hypr& L, const double p1, const double p2);
0115
0116 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Hypr& L, const gp_Pnt& P1, const gp_Pnt& P2);
0117
0118 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Hypr& L,
0119 const TopoDS_Vertex& V1,
0120 const TopoDS_Vertex& V2);
0121
0122 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Parab& L);
0123
0124 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Parab& L, const double p1, const double p2);
0125
0126 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Parab& L, const gp_Pnt& P1, const gp_Pnt& P2);
0127
0128 Standard_EXPORT BRepBuilderAPI_MakeEdge(const gp_Parab& L,
0129 const TopoDS_Vertex& V1,
0130 const TopoDS_Vertex& V2);
0131
0132 Standard_EXPORT BRepBuilderAPI_MakeEdge(const occ::handle<Geom_Curve>& L);
0133
0134 Standard_EXPORT BRepBuilderAPI_MakeEdge(const occ::handle<Geom_Curve>& L,
0135 const double p1,
0136 const double p2);
0137
0138 Standard_EXPORT BRepBuilderAPI_MakeEdge(const occ::handle<Geom_Curve>& L,
0139 const gp_Pnt& P1,
0140 const gp_Pnt& P2);
0141
0142 Standard_EXPORT BRepBuilderAPI_MakeEdge(const occ::handle<Geom_Curve>& L,
0143 const TopoDS_Vertex& V1,
0144 const TopoDS_Vertex& V2);
0145
0146 Standard_EXPORT BRepBuilderAPI_MakeEdge(const occ::handle<Geom_Curve>& L,
0147 const gp_Pnt& P1,
0148 const gp_Pnt& P2,
0149 const double p1,
0150 const double p2);
0151
0152 Standard_EXPORT BRepBuilderAPI_MakeEdge(const occ::handle<Geom_Curve>& L,
0153 const TopoDS_Vertex& V1,
0154 const TopoDS_Vertex& V2,
0155 const double p1,
0156 const double p2);
0157
0158 Standard_EXPORT BRepBuilderAPI_MakeEdge(const occ::handle<Geom2d_Curve>& L,
0159 const occ::handle<Geom_Surface>& S);
0160
0161 Standard_EXPORT BRepBuilderAPI_MakeEdge(const occ::handle<Geom2d_Curve>& L,
0162 const occ::handle<Geom_Surface>& S,
0163 const double p1,
0164 const double p2);
0165
0166 Standard_EXPORT BRepBuilderAPI_MakeEdge(const occ::handle<Geom2d_Curve>& L,
0167 const occ::handle<Geom_Surface>& S,
0168 const gp_Pnt& P1,
0169 const gp_Pnt& P2);
0170
0171 Standard_EXPORT BRepBuilderAPI_MakeEdge(const occ::handle<Geom2d_Curve>& L,
0172 const occ::handle<Geom_Surface>& S,
0173 const TopoDS_Vertex& V1,
0174 const TopoDS_Vertex& V2);
0175
0176 Standard_EXPORT BRepBuilderAPI_MakeEdge(const occ::handle<Geom2d_Curve>& L,
0177 const occ::handle<Geom_Surface>& S,
0178 const gp_Pnt& P1,
0179 const gp_Pnt& P2,
0180 const double p1,
0181 const double p2);
0182
0183
0184
0185
0186
0187
0188
0189
0190
0191
0192
0193
0194
0195
0196
0197
0198
0199
0200
0201
0202
0203
0204
0205
0206
0207
0208
0209
0210
0211
0212
0213
0214
0215
0216
0217
0218
0219
0220
0221
0222
0223
0224
0225
0226
0227
0228
0229
0230
0231
0232
0233
0234
0235
0236
0237
0238
0239
0240
0241
0242
0243
0244
0245
0246
0247 Standard_EXPORT BRepBuilderAPI_MakeEdge(const occ::handle<Geom2d_Curve>& L,
0248 const occ::handle<Geom_Surface>& S,
0249 const TopoDS_Vertex& V1,
0250 const TopoDS_Vertex& V2,
0251 const double p1,
0252 const double p2);
0253
0254 Standard_EXPORT void Init(const occ::handle<Geom_Curve>& C);
0255
0256 Standard_EXPORT void Init(const occ::handle<Geom_Curve>& C, const double p1, const double p2);
0257
0258 Standard_EXPORT void Init(const occ::handle<Geom_Curve>& C, const gp_Pnt& P1, const gp_Pnt& P2);
0259
0260 Standard_EXPORT void Init(const occ::handle<Geom_Curve>& C,
0261 const TopoDS_Vertex& V1,
0262 const TopoDS_Vertex& V2);
0263
0264 Standard_EXPORT void Init(const occ::handle<Geom_Curve>& C,
0265 const gp_Pnt& P1,
0266 const gp_Pnt& P2,
0267 const double p1,
0268 const double p2);
0269
0270 Standard_EXPORT void Init(const occ::handle<Geom_Curve>& C,
0271 const TopoDS_Vertex& V1,
0272 const TopoDS_Vertex& V2,
0273 const double p1,
0274 const double p2);
0275
0276 Standard_EXPORT void Init(const occ::handle<Geom2d_Curve>& C, const occ::handle<Geom_Surface>& S);
0277
0278 Standard_EXPORT void Init(const occ::handle<Geom2d_Curve>& C,
0279 const occ::handle<Geom_Surface>& S,
0280 const double p1,
0281 const double p2);
0282
0283 Standard_EXPORT void Init(const occ::handle<Geom2d_Curve>& C,
0284 const occ::handle<Geom_Surface>& S,
0285 const gp_Pnt& P1,
0286 const gp_Pnt& P2);
0287
0288 Standard_EXPORT void Init(const occ::handle<Geom2d_Curve>& C,
0289 const occ::handle<Geom_Surface>& S,
0290 const TopoDS_Vertex& V1,
0291 const TopoDS_Vertex& V2);
0292
0293 Standard_EXPORT void Init(const occ::handle<Geom2d_Curve>& C,
0294 const occ::handle<Geom_Surface>& S,
0295 const gp_Pnt& P1,
0296 const gp_Pnt& P2,
0297 const double p1,
0298 const double p2);
0299
0300
0301
0302 Standard_EXPORT void Init(const occ::handle<Geom2d_Curve>& C,
0303 const occ::handle<Geom_Surface>& S,
0304 const TopoDS_Vertex& V1,
0305 const TopoDS_Vertex& V2,
0306 const double p1,
0307 const double p2);
0308
0309
0310 Standard_EXPORT bool IsDone() const override;
0311
0312
0313
0314
0315
0316 Standard_EXPORT BRepBuilderAPI_EdgeError Error() const;
0317
0318
0319
0320 Standard_EXPORT const TopoDS_Edge& Edge();
0321 Standard_EXPORT operator TopoDS_Edge();
0322
0323
0324 Standard_EXPORT const TopoDS_Vertex& Vertex1() const;
0325
0326
0327
0328
0329
0330
0331
0332
0333
0334
0335
0336 Standard_EXPORT const TopoDS_Vertex& Vertex2() const;
0337
0338 private:
0339 BRepLib_MakeEdge myMakeEdge;
0340 };
0341
0342 #endif