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
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 Intersector from Geom2dHatch
19 inherits GInter from Geom2dInt
23 Curve from Geom2dAdaptor,
29 Create (Confusion : Real from Standard ;
30 Tangency : Real from Standard)
32 ---Purpose: Creates an intersector.
36 returns Intersector from Geom2dHatch ;
39 ConfusionTolerance (me)
41 ---Purpose: Returns the confusion tolerance of the
46 returns Real from Standard
50 SetConfusionTolerance (me : in out ;
51 Confusion : Real from Standard)
53 ---Purpose: Sets the confusion tolerance of the intersector.
60 TangencyTolerance (me)
62 ---Purpose: Returns the tangency tolerance of the
67 returns Real from Standard
71 SetTangencyTolerance (me : in out ;
72 Tangency : Real from Standard)
74 ---Purpose: Sets the tangency tolerance of the intersector.
81 Intersect (me : in out ; C1 : Curve from Geom2dAdaptor ;
82 C2 : Curve from Geom2dAdaptor )
84 ---Purpose: Intersects the curves C1 and C2.
85 -- The results are retreived by the usual methods
86 -- described in IntRes2d_Intersection.
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 -------------------------------------------------------------------------
97 ---Purpose: Creates an intersector.
101 returns Intersector from Geom2dHatch ;
105 P : Real from Standard;
106 Tol : Real from Standard;
107 E : Curve from Geom2dAdaptor) -- en fait in out
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.
119 E : Curve from Geom2dAdaptor;
120 U : Real from Standard;
121 T : out Dir2d from gp;
122 N : out Dir2d from gp;
125 ---Purpose: Returns in <T>, <N> and <C> the tangent, normal
126 -- and curvature of the edge <E> at parameter value
134 myConfusionTolerance : Real from Standard ;
135 myTangencyTolerance : Real from Standard ;
137 end Intersector from Geom2dHatch ;