0024915: Wrong intersection curves between two cylinders
[occt.git] / src / Geom2dHatch / Geom2dHatch_Intersector.cdl
1 -- Created on: 1994-03-23
2 -- Created by: Jean Marc LACHAUME
3 -- Copyright (c) 1994-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
5 --
6 -- This file is part of Open CASCADE Technology software library.
7 --
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.
13 --
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
16
17 class Intersector from Geom2dHatch
18
19 inherits GInter from Geom2dInt
20
21 uses
22
23     Curve from Geom2dAdaptor,
24     Lin2d from gp,
25     Dir2d from gp
26     
27 is
28
29     Create (Confusion : Real from Standard ;
30             Tangency  : Real from Standard)
31
32         ---Purpose: Creates an intersector.
33
34         ---C++: inline
35
36         returns Intersector from Geom2dHatch ;
37
38
39     ConfusionTolerance (me)
40
41         ---Purpose: Returns the confusion tolerance of the
42         --          intersector.
43
44         ---C++: inline
45
46         returns Real from Standard
47         is static ;
48
49
50     SetConfusionTolerance (me : in out ;
51                            Confusion : Real from Standard)
52
53         ---Purpose: Sets the confusion tolerance of the intersector.
54
55         ---C++: inline
56
57         is static ;
58
59
60     TangencyTolerance (me)
61
62         ---Purpose: Returns the tangency tolerance of the
63         --          intersector.
64
65         ---C++: inline
66
67         returns Real from Standard
68         is static ;
69
70
71     SetTangencyTolerance (me : in out ;
72                           Tangency : Real from Standard)
73
74         ---Purpose: Sets the tangency tolerance of the intersector.
75
76         ---C++: inline
77
78         is static ;
79
80
81     Intersect (me : in out ; C1 : Curve from Geom2dAdaptor ;
82                              C2 : Curve from Geom2dAdaptor )
83
84         ---Purpose: Intersects the curves C1 and C2.
85         --          The results are retreived by the usual methods
86         --          described in IntRes2d_Intersection.
87
88         ---C++: inline
89
90         is static ;
91
92 -------------------------------------------------------------------------
93 ---- M e t h o d s   u s e d   b y   t h e   C l a s s i f i e r 2 d  ---
94 -------------------------------------------------------------------------
95     Create
96
97         ---Purpose: Creates an intersector.
98
99         ---C++: inline
100
101         returns Intersector from Geom2dHatch ;
102
103     Perform(me    : in out;
104              L    :         Lin2d from gp; 
105              P    :         Real  from Standard; 
106              Tol  :         Real  from Standard; 
107              E    :         Curve from Geom2dAdaptor) -- en fait in out
108              
109         ---Purpose: Performs the intersection   between the  2d   line
110         --          segment (<L>, <P>) and  the  Curve <E>.  The  line
111         --          segment  is the  part  of  the  2d   line   <L> of
112         --          parameter range [0, <P>] (P is positive and can be
113         --          RealLast()). Tol is the  Tolerance on the segment.
114         --          The order  is relevant, the  first argument is the
115         --          segment, the second the Edge.
116     is static;
117         
118     LocalGeometry(me; 
119                   E :     Curve from Geom2dAdaptor;
120                   U :     Real  from Standard; 
121                   T : out Dir2d from gp; 
122                   N : out Dir2d from gp;
123                   C : out Real)
124                   
125         ---Purpose: Returns in <T>,  <N> and <C>  the tangent,  normal
126         --          and  curvature of the edge  <E> at parameter value
127         --          <U>.
128     is static;
129
130     
131
132 fields
133
134     myConfusionTolerance : Real from Standard ;
135     myTangencyTolerance  : Real from Standard ;
136
137 end Intersector from Geom2dHatch ;