b311480e |
1 | -- Created on: 1994-06-24 |
2 | -- Created by: Yves FRICAUD |
3 | -- Copyright (c) 1994-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 | -- |
d5f74e42 |
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 |
973c2be1 |
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 | class Inter from Bisector |
18 | |
19 | ---Purpose: Intersection between two <Bisec> from Bisector. |
20 | |
21 | inherits |
22 | Intersection from IntRes2d |
23 | |
24 | uses |
25 | Domain from IntRes2d, |
26 | Bisec from Bisector, |
27 | Curve from Bisector, |
28 | BisecCC from Bisector, |
29 | Curve from Geom2d, |
30 | Line from Geom2d |
31 | |
32 | raises ConstructionError from Standard |
33 | |
34 | is |
35 | Create returns Inter from Bisector; |
36 | |
37 | Create (C1: Bisec from Bisector; D1: Domain from IntRes2d; |
38 | C2: Bisec from Bisector; D2: Domain from IntRes2d; |
39 | TolConf,Tol : Real from Standard; |
40 | ComunElement : Boolean from Standard) |
41 | ---Purpose: Intersection between 2 curves. |
42 | -- C1 separates the element A and B. |
43 | -- C2 separates the elements C et D. |
44 | -- If B an C have the same geometry. <ComunElement> |
45 | -- Has to be True. |
46 | -- It Permits an optimiztion of the computation. |
47 | |
48 | returns Inter from Bisector |
49 | raises ConstructionError from Standard; |
50 | |
51 | |
52 | Perform (me: in out; |
53 | C1: Bisec from Bisector; D1: Domain from IntRes2d; |
54 | C2: Bisec from Bisector; D2: Domain from IntRes2d; |
55 | TolConf,Tol : Real from Standard; |
56 | ComunElement : Boolean from Standard) |
57 | ---Purpose: Intersection between 2 curves. |
58 | -- C1 separates the element A and B. |
59 | -- C2 separates the elements C et D. |
60 | -- If B an C have the same geometry. <ComunElement> |
61 | -- Has to be True. |
62 | -- It Permits an optimiztion of the computation. |
63 | |
64 | raises ConstructionError from Standard |
65 | is static; |
66 | |
67 | SinglePerform (me: in out; |
68 | C1: Curve from Geom2d ; D1: Domain from IntRes2d; |
69 | C2: Curve from Geom2d ; D2: Domain from IntRes2d; |
70 | TolConf,Tol : Real from Standard; |
71 | ComunElement : Boolean from Standard) |
72 | ---Purpose: Intersection between 2 curves. |
73 | |
74 | raises ConstructionError from Standard |
75 | is static private; |
76 | |
77 | NeighbourPerform (me : in out; |
78 | C1 : BisecCC from Bisector; D1: Domain from IntRes2d; |
79 | C2 : BisecCC from Bisector; D2: Domain from IntRes2d; |
80 | Tol: Real from Standard) |
81 | is static private; |
82 | |
83 | TestBound (me : in out; |
84 | C1 : Line from Geom2d ; D1 : Domain from IntRes2d; |
85 | C2 : Curve from Geom2d ; D2 : Domain from IntRes2d; |
86 | Tol: Real from Standard; Reverse : Boolean from Standard) |
87 | is static private; |
88 | |
89 | end Inter; |