File indexing completed on 2026-12-03 10:54:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepLib_MakeEdge_HeaderFile
0018 #define _BRepLib_MakeEdge_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <BRepLib_EdgeError.hxx>
0025 #include <TopoDS_Vertex.hxx>
0026 #include <BRepLib_MakeShape.hxx>
0027 class gp_Pnt;
0028 class gp_Lin;
0029 class gp_Circ;
0030 class gp_Elips;
0031 class gp_Hypr;
0032 class gp_Parab;
0033 class Geom_Curve;
0034 class Geom2d_Curve;
0035 class Geom_Surface;
0036 class TopoDS_Edge;
0037
0038
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 class BRepLib_MakeEdge : public BRepLib_MakeShape
0070 {
0071 public:
0072 DEFINE_STANDARD_ALLOC
0073
0074 Standard_EXPORT BRepLib_MakeEdge();
0075
0076 Standard_EXPORT BRepLib_MakeEdge(const TopoDS_Vertex& V1, const TopoDS_Vertex& V2);
0077
0078 Standard_EXPORT BRepLib_MakeEdge(const gp_Pnt& P1, const gp_Pnt& P2);
0079
0080 Standard_EXPORT BRepLib_MakeEdge(const gp_Lin& L);
0081
0082 Standard_EXPORT BRepLib_MakeEdge(const gp_Lin& L, const double p1, const double p2);
0083
0084 Standard_EXPORT BRepLib_MakeEdge(const gp_Lin& L, const gp_Pnt& P1, const gp_Pnt& P2);
0085
0086 Standard_EXPORT BRepLib_MakeEdge(const gp_Lin& L,
0087 const TopoDS_Vertex& V1,
0088 const TopoDS_Vertex& V2);
0089
0090 Standard_EXPORT BRepLib_MakeEdge(const gp_Circ& L);
0091
0092 Standard_EXPORT BRepLib_MakeEdge(const gp_Circ& L, const double p1, const double p2);
0093
0094 Standard_EXPORT BRepLib_MakeEdge(const gp_Circ& L, const gp_Pnt& P1, const gp_Pnt& P2);
0095
0096 Standard_EXPORT BRepLib_MakeEdge(const gp_Circ& L,
0097 const TopoDS_Vertex& V1,
0098 const TopoDS_Vertex& V2);
0099
0100 Standard_EXPORT BRepLib_MakeEdge(const gp_Elips& L);
0101
0102 Standard_EXPORT BRepLib_MakeEdge(const gp_Elips& L, const double p1, const double p2);
0103
0104 Standard_EXPORT BRepLib_MakeEdge(const gp_Elips& L, const gp_Pnt& P1, const gp_Pnt& P2);
0105
0106 Standard_EXPORT BRepLib_MakeEdge(const gp_Elips& L,
0107 const TopoDS_Vertex& V1,
0108 const TopoDS_Vertex& V2);
0109
0110 Standard_EXPORT BRepLib_MakeEdge(const gp_Hypr& L);
0111
0112 Standard_EXPORT BRepLib_MakeEdge(const gp_Hypr& L, const double p1, const double p2);
0113
0114 Standard_EXPORT BRepLib_MakeEdge(const gp_Hypr& L, const gp_Pnt& P1, const gp_Pnt& P2);
0115
0116 Standard_EXPORT BRepLib_MakeEdge(const gp_Hypr& L,
0117 const TopoDS_Vertex& V1,
0118 const TopoDS_Vertex& V2);
0119
0120 Standard_EXPORT BRepLib_MakeEdge(const gp_Parab& L);
0121
0122 Standard_EXPORT BRepLib_MakeEdge(const gp_Parab& L, const double p1, const double p2);
0123
0124 Standard_EXPORT BRepLib_MakeEdge(const gp_Parab& L, const gp_Pnt& P1, const gp_Pnt& P2);
0125
0126 Standard_EXPORT BRepLib_MakeEdge(const gp_Parab& L,
0127 const TopoDS_Vertex& V1,
0128 const TopoDS_Vertex& V2);
0129
0130 Standard_EXPORT BRepLib_MakeEdge(const occ::handle<Geom_Curve>& L);
0131
0132 Standard_EXPORT BRepLib_MakeEdge(const occ::handle<Geom_Curve>& L,
0133 const double p1,
0134 const double p2);
0135
0136 Standard_EXPORT BRepLib_MakeEdge(const occ::handle<Geom_Curve>& L,
0137 const gp_Pnt& P1,
0138 const gp_Pnt& P2);
0139
0140 Standard_EXPORT BRepLib_MakeEdge(const occ::handle<Geom_Curve>& L,
0141 const TopoDS_Vertex& V1,
0142 const TopoDS_Vertex& V2);
0143
0144 Standard_EXPORT BRepLib_MakeEdge(const occ::handle<Geom_Curve>& L,
0145 const gp_Pnt& P1,
0146 const gp_Pnt& P2,
0147 const double p1,
0148 const double p2);
0149
0150 Standard_EXPORT BRepLib_MakeEdge(const occ::handle<Geom_Curve>& L,
0151 const TopoDS_Vertex& V1,
0152 const TopoDS_Vertex& V2,
0153 const double p1,
0154 const double p2);
0155
0156 Standard_EXPORT BRepLib_MakeEdge(const occ::handle<Geom2d_Curve>& L,
0157 const occ::handle<Geom_Surface>& S);
0158
0159 Standard_EXPORT BRepLib_MakeEdge(const occ::handle<Geom2d_Curve>& L,
0160 const occ::handle<Geom_Surface>& S,
0161 const double p1,
0162 const double p2);
0163
0164 Standard_EXPORT BRepLib_MakeEdge(const occ::handle<Geom2d_Curve>& L,
0165 const occ::handle<Geom_Surface>& S,
0166 const gp_Pnt& P1,
0167 const gp_Pnt& P2);
0168
0169 Standard_EXPORT BRepLib_MakeEdge(const occ::handle<Geom2d_Curve>& L,
0170 const occ::handle<Geom_Surface>& S,
0171 const TopoDS_Vertex& V1,
0172 const TopoDS_Vertex& V2);
0173
0174 Standard_EXPORT BRepLib_MakeEdge(const occ::handle<Geom2d_Curve>& L,
0175 const occ::handle<Geom_Surface>& S,
0176 const gp_Pnt& P1,
0177 const gp_Pnt& P2,
0178 const double p1,
0179 const double p2);
0180
0181 Standard_EXPORT BRepLib_MakeEdge(const occ::handle<Geom2d_Curve>& L,
0182 const occ::handle<Geom_Surface>& S,
0183 const TopoDS_Vertex& V1,
0184 const TopoDS_Vertex& V2,
0185 const double p1,
0186 const double p2);
0187
0188 Standard_EXPORT void Init(const occ::handle<Geom_Curve>& C);
0189
0190 Standard_EXPORT void Init(const occ::handle<Geom_Curve>& C, const double p1, const double p2);
0191
0192 Standard_EXPORT void Init(const occ::handle<Geom_Curve>& C, const gp_Pnt& P1, const gp_Pnt& P2);
0193
0194 Standard_EXPORT void Init(const occ::handle<Geom_Curve>& C,
0195 const TopoDS_Vertex& V1,
0196 const TopoDS_Vertex& V2);
0197
0198 Standard_EXPORT void Init(const occ::handle<Geom_Curve>& C,
0199 const gp_Pnt& P1,
0200 const gp_Pnt& P2,
0201 const double p1,
0202 const double p2);
0203
0204 Standard_EXPORT void Init(const occ::handle<Geom_Curve>& C,
0205 const TopoDS_Vertex& V1,
0206 const TopoDS_Vertex& V2,
0207 const double p1,
0208 const double p2);
0209
0210 Standard_EXPORT void Init(const occ::handle<Geom2d_Curve>& C, const occ::handle<Geom_Surface>& S);
0211
0212 Standard_EXPORT void Init(const occ::handle<Geom2d_Curve>& C,
0213 const occ::handle<Geom_Surface>& S,
0214 const double p1,
0215 const double p2);
0216
0217 Standard_EXPORT void Init(const occ::handle<Geom2d_Curve>& C,
0218 const occ::handle<Geom_Surface>& S,
0219 const gp_Pnt& P1,
0220 const gp_Pnt& P2);
0221
0222 Standard_EXPORT void Init(const occ::handle<Geom2d_Curve>& C,
0223 const occ::handle<Geom_Surface>& S,
0224 const TopoDS_Vertex& V1,
0225 const TopoDS_Vertex& V2);
0226
0227 Standard_EXPORT void Init(const occ::handle<Geom2d_Curve>& C,
0228 const occ::handle<Geom_Surface>& S,
0229 const gp_Pnt& P1,
0230 const gp_Pnt& P2,
0231 const double p1,
0232 const double p2);
0233
0234 Standard_EXPORT void Init(const occ::handle<Geom2d_Curve>& C,
0235 const occ::handle<Geom_Surface>& S,
0236 const TopoDS_Vertex& V1,
0237 const TopoDS_Vertex& V2,
0238 const double p1,
0239 const double p2);
0240
0241
0242 Standard_EXPORT BRepLib_EdgeError Error() const;
0243
0244 Standard_EXPORT const TopoDS_Edge& Edge();
0245 Standard_EXPORT operator TopoDS_Edge();
0246
0247
0248 Standard_EXPORT const TopoDS_Vertex& Vertex1() const;
0249
0250
0251 Standard_EXPORT const TopoDS_Vertex& Vertex2() const;
0252
0253 private:
0254 BRepLib_EdgeError myError;
0255 TopoDS_Vertex myVertex1;
0256 TopoDS_Vertex myVertex2;
0257 };
0258
0259 #endif