b311480e |
1 | -- Created on: 1992-03-02 |
2 | -- Created by: Laurent BUCHARD |
3 | -- Copyright (c) 1992-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 | package IntImpParGen |
18 | |
19 | |
20 | ---Purpose: Gives a generic algorithm to intersect Implicit Curves |
21 | -- and Bounded Parametric Curves. |
22 | -- |
23 | -- Level: Internal |
24 | -- |
25 | -- All the methods of all the classes are Internal. |
26 | |
27 | |
28 | uses Standard, TColStd, gp, math, IntRes2d, StdFail |
29 | |
30 | is |
31 | |
32 | deferred class ImpTool; |
33 | ---Purpose: Template class for an implicit curve. |
34 | |
35 | deferred generic class ParTool; |
36 | ---Purpose: Template class for a tool on a parameterised curve. |
37 | |
38 | generic class ImpParTool; |
39 | ---Purpose: Math function, instantiated inside the Intersector. |
40 | |
41 | generic class Intersector,MyImpParTool; |
42 | |
43 | |
44 | ---Purpose: Tool used by the package IntCurve and IntImpParGen |
45 | |
46 | DetermineTransition(Pos1 : Position from IntRes2d; |
47 | Tan1 : in out Vec2d from gp; |
48 | Norm1 : Vec2d from gp; |
49 | Trans1: in out Transition from IntRes2d; |
50 | Pos2 : Position from IntRes2d; |
51 | Tan2 : in out Vec2d from gp; |
52 | Norm2 : Vec2d from gp; |
53 | Trans2: in out Transition from IntRes2d; |
54 | Tol : Real from Standard); |
55 | |
56 | DetermineTransition(Pos1 : Position from IntRes2d; |
57 | Tan1 : in out Vec2d from gp; |
58 | Trans1: in out Transition from IntRes2d; |
59 | Pos2 : Position from IntRes2d; |
60 | Tan2 : in out Vec2d from gp; |
61 | Trans2: in out Transition from IntRes2d; |
62 | Tol : Real from Standard) |
63 | returns Boolean from Standard; |
64 | |
65 | DeterminePosition( Pos1 : in out Position from IntRes2d; |
66 | Dom1 : Domain from IntRes2d; |
67 | P1 : Pnt2d from gp; |
68 | Tol : Real from Standard); |
69 | |
70 | NormalizeOnDomain( Par1 : in out Real from Standard; |
71 | Dom1 : Domain from IntRes2d) |
72 | |
73 | returns Real from Standard; |
74 | |
75 | |
76 | end IntImpParGen; |
77 | |