1 -- Created on: 1995-01-04
2 -- Created by: Bruno DUMORTIER
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class MakeEdge2d from BRepLib inherits MakeShape from BRepLib
19 ---Purpose: Provides methods to build edges.
21 -- The methods have the following syntax, where
22 -- TheCurve is one of Lin2d, Circ2d, ...
24 -- Create(C : TheCurve)
26 -- Makes an edge on the whole curve. Add vertices
29 -- Create(C : TheCurve; p1,p2 : Real)
31 -- Make an edge on the curve between parameters p1
32 -- and p2. if p2 < p1 the edge will be REVERSED. If
33 -- p1 or p2 is infinite the curve will be open in
34 -- that direction. Vertices are created for finite
35 -- values of p1 and p2.
37 -- Create(C : TheCurve; P1, P2 : Pnt2d from gp)
39 -- Make an edge on the curve between the points P1
40 -- and P2. The points are projected on the curve
41 -- and the previous method is used. An error is
42 -- raised if the points are not on the curve.
44 -- Create(C : TheCurve; V1, V2 : Vertex from TopoDS)
46 -- Make an edge on the curve between the vertices
47 -- V1 and V2. Same as the previous but no vertices
48 -- are created. If a vertex is Null the curve will
49 -- be open in this direction.
52 EdgeError from BRepLib,
68 ----------------------------------------
70 ----------------------------------------
72 Create(V1, V2 : Vertex from TopoDS)
74 returns MakeEdge2d from BRepLib;
76 Create(P1, P2 : Pnt2d from gp)
78 returns MakeEdge2d from BRepLib;
81 ----------------------------------------
83 ----------------------------------------
85 Create(L : Lin2d from gp)
87 returns MakeEdge2d from BRepLib;
89 Create(L : Lin2d from gp; p1,p2 : Real)
91 returns MakeEdge2d from BRepLib;
93 Create(L : Lin2d from gp; P1,P2 : Pnt2d from gp)
95 returns MakeEdge2d from BRepLib;
97 Create(L : Lin2d from gp; V1, V2 : Vertex from TopoDS)
99 returns MakeEdge2d from BRepLib;
101 ----------------------------------------
103 ----------------------------------------
105 Create(L : Circ2d from gp)
107 returns MakeEdge2d from BRepLib;
109 Create(L : Circ2d from gp; p1,p2 : Real)
111 returns MakeEdge2d from BRepLib;
113 Create(L : Circ2d from gp; P1,P2 : Pnt2d from gp)
115 returns MakeEdge2d from BRepLib;
117 Create(L : Circ2d from gp; V1, V2 : Vertex from TopoDS)
119 returns MakeEdge2d from BRepLib;
122 ----------------------------------------
124 ----------------------------------------
126 Create(L : Elips2d from gp)
128 returns MakeEdge2d from BRepLib;
130 Create(L : Elips2d from gp; p1,p2 : Real)
132 returns MakeEdge2d from BRepLib;
134 Create(L : Elips2d from gp; P1,P2 : Pnt2d from gp)
136 returns MakeEdge2d from BRepLib;
138 Create(L : Elips2d from gp; V1, V2 : Vertex from TopoDS)
140 returns MakeEdge2d from BRepLib;
142 ----------------------------------------
144 ----------------------------------------
146 Create(L : Hypr2d from gp)
148 returns MakeEdge2d from BRepLib;
150 Create(L : Hypr2d from gp; p1,p2 : Real)
152 returns MakeEdge2d from BRepLib;
154 Create(L : Hypr2d from gp; P1,P2 : Pnt2d from gp)
156 returns MakeEdge2d from BRepLib;
158 Create(L : Hypr2d from gp; V1, V2 : Vertex from TopoDS)
160 returns MakeEdge2d from BRepLib;
162 ----------------------------------------
164 ----------------------------------------
166 Create(L : Parab2d from gp)
168 returns MakeEdge2d from BRepLib;
170 Create(L : Parab2d from gp; p1,p2 : Real)
172 returns MakeEdge2d from BRepLib;
174 Create(L : Parab2d from gp; P1,P2 : Pnt2d from gp)
176 returns MakeEdge2d from BRepLib;
178 Create(L : Parab2d from gp; V1, V2 : Vertex from TopoDS)
180 returns MakeEdge2d from BRepLib;
182 ----------------------------------------
184 ----------------------------------------
186 Create(L : Curve from Geom2d)
188 returns MakeEdge2d from BRepLib;
190 Create(L : Curve from Geom2d; p1,p2 : Real)
192 returns MakeEdge2d from BRepLib;
194 Create(L : Curve from Geom2d;
195 P1,P2 : Pnt2d from gp)
197 returns MakeEdge2d from BRepLib;
199 Create(L : Curve from Geom2d;
200 V1, V2 : Vertex from TopoDS)
202 returns MakeEdge2d from BRepLib;
204 Create(L : Curve from Geom2d;
205 P1,P2 : Pnt2d from gp; p1,p2 : Real)
207 returns MakeEdge2d from BRepLib;
209 Create(L : Curve from Geom2d;
210 V1, V2 : Vertex from TopoDS;
213 returns MakeEdge2d from BRepLib;
215 ----------------------------------------
217 ----------------------------------------
219 Init(me : in out; C : Curve from Geom2d)
223 Init(me : in out; C : Curve from Geom2d;
228 Init(me : in out; C : Curve from Geom2d;
229 P1, P2 : Pnt2d from gp)
233 Init(me : in out; C : Curve from Geom2d;
234 V1, V2 : Vertex from TopoDS)
238 Init(me : in out; C : Curve from Geom2d;
239 P1, P2 : Pnt2d from gp;
244 Init(me : in out; C : Curve from Geom2d;
245 V1, V2 : Vertex from TopoDS;
251 ----------------------------------------
253 ----------------------------------------
256 returns EdgeError from BRepLib
257 ---Purpose: Returns the error description when NotDone.
261 Edge(me) returns Edge from TopoDS
262 ---C++: return const &
263 ---C++: alias "Standard_EXPORT operator TopoDS_Edge() const;"
269 Vertex1(me) returns Vertex from TopoDS
270 ---Purpose: Returns the first vertex of the edge. May be Null.
272 ---C++: return const &
276 Vertex2(me) returns Vertex from TopoDS
277 ---Purpose: Returns the second vertex of the edge. May be Null.
279 ---C++: return const &
285 myError : EdgeError from BRepLib;
286 myVertex1 : Vertex from TopoDS;
287 myVertex2 : Vertex from TopoDS;