0022939: Make B-Spline internal cache thread-safe to be used in multy-threaded mode
[occt.git] / src / Geom / Geom_SweptSurface.cdl
1 -- Created on: 1993-03-10
2 -- Created by: JCV
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
5 --
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
10 --
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 --
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
20
21
22
23 deferred class SweptSurface from Geom inherits Surface from Geom 
24
25         ---Purpose : Describes the common behavior for surfaces
26         -- constructed by sweeping a curve with another curve.
27         -- The Geom package provides two concrete derived
28         -- surfaces: surface of revolution (a revolved surface),
29         -- and surface of linear extrusion (an extruded surface).
30        
31
32 uses Dir         from gp,
33      Curve       from Geom,
34      Shape       from GeomAbs
35
36 is
37
38
39   Continuity (me)   returns Shape from GeomAbs;
40         ---Purpose :
41         --  returns the continuity of the surface : 
42         --  C0 : only geometric continuity,
43         --  C1 : continuity of the first derivative all along the surface,
44         --  C2 : continuity of the second derivative all along the surface,
45         --  C3 : continuity of the third derivative all along the surface,
46         --  G1 : tangency continuity all along the surface,
47         --  G2 : curvature continuity all along the surface,
48         --  CN : the order of continuity is infinite.
49
50
51   Direction (me)  returns Dir;
52         ---Purpose :
53         --  Returns the reference direction of the swept surface.
54         --  For a surface of revolution it is the direction of the 
55         --  revolution axis, for a surface of linear extrusion it is 
56         --  the direction of extrusion.
57         ---C++: return const&
58
59
60   BasisCurve (me)  returns Curve from Geom;
61         ---Purpose :
62         --  Returns the referenced curve of the surface.
63         --  For a surface of revolution it is the revolution curve,
64         --  for a surface of linear extrusion it is the extruded curve.
65
66
67 fields
68
69   basisCurve : Curve       from Geom    is protected;
70   direction  : Dir         from gp      is protected;
71   smooth     : Shape       from GeomAbs is protected;
72
73
74 end;