1 -- Created on: 1993-03-10
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
23 deferred class SweptSurface from Geom inherits Surface from Geom
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).
39 Continuity (me) returns Shape from GeomAbs;
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.
51 Direction (me) returns Dir;
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.
60 BasisCurve (me) returns Curve from Geom;
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.
69 basisCurve : Curve from Geom is protected;
70 direction : Dir from gp is protected;
71 smooth : Shape from GeomAbs is protected;