1 // Created on: 1993-03-10
3 // Copyright (c) 1993-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 #ifndef _Geom_SweptSurface_HeaderFile
18 #define _Geom_SweptSurface_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
24 #include <GeomAbs_Shape.hxx>
25 #include <Geom_Surface.hxx>
30 class Geom_SweptSurface;
31 DEFINE_STANDARD_HANDLE(Geom_SweptSurface, Geom_Surface)
33 //! Describes the common behavior for surfaces
34 //! constructed by sweeping a curve with another curve.
35 //! The Geom package provides two concrete derived
36 //! surfaces: surface of revolution (a revolved surface),
37 //! and surface of linear extrusion (an extruded surface).
38 class Geom_SweptSurface : public Geom_Surface
45 //! returns the continuity of the surface :
46 //! C0 : only geometric continuity,
47 //! C1 : continuity of the first derivative all along the surface,
48 //! C2 : continuity of the second derivative all along the surface,
49 //! C3 : continuity of the third derivative all along the surface,
50 //! G1 : tangency continuity all along the surface,
51 //! G2 : curvature continuity all along the surface,
52 //! CN : the order of continuity is infinite.
53 Standard_EXPORT GeomAbs_Shape Continuity() const Standard_OVERRIDE;
56 //! Returns the reference direction of the swept surface.
57 //! For a surface of revolution it is the direction of the
58 //! revolution axis, for a surface of linear extrusion it is
59 //! the direction of extrusion.
60 Standard_EXPORT const gp_Dir& Direction() const;
63 //! Returns the referenced curve of the surface.
64 //! For a surface of revolution it is the revolution curve,
65 //! for a surface of linear extrusion it is the extruded curve.
66 Standard_EXPORT Handle(Geom_Curve) BasisCurve() const;
71 DEFINE_STANDARD_RTTIEXT(Geom_SweptSurface,Geom_Surface)
76 Handle(Geom_Curve) basisCurve;
94 #endif // _Geom_SweptSurface_HeaderFile