b311480e |
1 | -- Created on: 1995-07-20 |
2 | -- Created by: Modelistation |
3 | -- Copyright (c) 1995-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
973c2be1 |
8 | -- This library is free software; you can redistribute it and / or modify it |
9 | -- under the terms of the GNU Lesser General Public 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. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | generic class ApproxLineGen from BRepApprox |
18 | (TheCurve as any; |
19 | TheCurve2d as any) |
20 | inherits TShared from MMgt |
21 | |
22 | |
23 | uses |
24 | |
25 | PntOn2S from IntSurf, |
26 | LineOn2S from IntSurf |
27 | |
28 | is |
29 | |
30 | Create(CurveXYZ: TheCurve; |
31 | CurveUV1: TheCurve2d; |
32 | CurveUV2: TheCurve2d) |
33 | returns mutable ApproxLineGen from BRepApprox; |
34 | |
35 | Create(lin: LineOn2S from IntSurf; Tang: Boolean from Standard) |
36 | returns mutable ApproxLineGen from BRepApprox; |
37 | |
38 | NbPnts(me) |
39 | returns Integer from Standard |
40 | is static; |
41 | |
42 | Point(me: mutable; Index: Integer from Standard) |
43 | returns PntOn2S from IntSurf |
44 | is static; |
45 | |
46 | fields |
47 | |
48 | curvxyz : TheCurve; |
49 | curvuv1 : TheCurve2d; |
50 | curvuv2 : TheCurve2d; |
51 | pnton2s : PntOn2S from IntSurf; |
52 | linon2s : LineOn2S from IntSurf; |
53 | |
54 | end ApproxLineGen from BRepApprox; |
55 | |