1 -- Created on: 1992-08-11
2 -- Created by: Remi LEQUETTE
3 -- Copyright (c) 1992-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 EdgeFaceTransition from TopCnx
19 ---Purpose: TheEdgeFaceTransition is an algorithm to compute
20 -- the cumulated transition for interferences on an
25 Boolean from Standard,
27 Integer from Standard,
33 Orientation from TopAbs,
35 CurveTransition from TopTrans
38 Create returns EdgeFaceTransition from TopCnx;
39 ---Purpose: Creates an empty algorithm.
42 Tgt : Dir from gp; -- Tangent at this point
43 Norm : Dir from gp; -- Normal vector at this point
44 Curv : Real from Standard) -- Curvature at this point
45 ---Purpose: Initialize the algorithm with the local
46 -- description of the edge.
50 Tgt : in Dir from gp) -- Tangent at this point
51 ---Purpose: Initialize the algorithm with a linear Edge.
54 AddInterference(me : in out;
55 Tole : Real from Standard; -- Cosine tolerance
56 Tang : Dir from gp; -- Tangent on curve for this point
57 Norm : Dir from gp; -- Normal vector at this point
58 Curv : Real from Standard; -- Curvature at this point
59 Or : Orientation from TopAbs; -- Orientation on the curve
60 Tr : Orientation from TopAbs; -- Transition
61 BTr : Orientation from TopAbs) -- Boundary transition
62 ---Purpose: Add a curve element to the boundary. Or is the
63 -- orientation of the interference on the boundary
64 -- curve. Tr is the transition of the interference.
65 -- BTr is the boundary transition of the
69 Transition(me) returns Orientation from TopAbs
70 ---Purpose: Returns the current cumulated transition.
73 BoundaryTransition(me) returns Orientation from TopAbs
74 ---Purpose: Returns the current cumulated BoundaryTransition.
78 myCurveTransition : CurveTransition from TopTrans;
79 nbBoundForward : Integer from Standard;
80 nbBoundReversed : Integer from Standard;
82 end EdgeFaceTransition;