Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:37

0001 // Created on: 1993-03-10
0002 // Created by: JCV
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _Geom_SweptSurface_HeaderFile
0018 #define _Geom_SweptSurface_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <gp_Dir.hxx>
0024 #include <GeomAbs_Shape.hxx>
0025 #include <Geom_Surface.hxx>
0026 class Geom_Curve;
0027 
0028 
0029 class Geom_SweptSurface;
0030 DEFINE_STANDARD_HANDLE(Geom_SweptSurface, Geom_Surface)
0031 
0032 //! Describes the common behavior for surfaces
0033 //! constructed by sweeping a curve with another curve.
0034 //! The Geom package provides two concrete derived
0035 //! surfaces: surface of revolution (a revolved surface),
0036 //! and surface of linear extrusion (an extruded surface).
0037 class Geom_SweptSurface : public Geom_Surface
0038 {
0039 
0040 public:
0041 
0042   
0043 
0044   //! returns the continuity of the surface :
0045   //! C0 : only geometric continuity,
0046   //! C1 : continuity of the first derivative all along the surface,
0047   //! C2 : continuity of the second derivative all along the surface,
0048   //! C3 : continuity of the third derivative all along the surface,
0049   //! G1 : tangency continuity all along the surface,
0050   //! G2 : curvature continuity all along the surface,
0051   //! CN : the order of continuity is infinite.
0052   Standard_EXPORT GeomAbs_Shape Continuity() const Standard_OVERRIDE;
0053   
0054 
0055   //! Returns the reference direction of the swept surface.
0056   //! For a surface of revolution it is the direction of the
0057   //! revolution axis, for a surface of linear extrusion it is
0058   //! the direction of extrusion.
0059   Standard_EXPORT const gp_Dir& Direction() const;
0060   
0061 
0062   //! Returns the referenced curve of the surface.
0063   //! For a surface of revolution it is the revolution curve,
0064   //! for a surface of linear extrusion it is the extruded curve.
0065   Standard_EXPORT Handle(Geom_Curve) BasisCurve() const;
0066 
0067   //! Dumps the content of me into the stream
0068   Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
0069 
0070 
0071 
0072 
0073   DEFINE_STANDARD_RTTIEXT(Geom_SweptSurface,Geom_Surface)
0074 
0075 protected:
0076 
0077 
0078   Handle(Geom_Curve) basisCurve;
0079   gp_Dir direction;
0080   GeomAbs_Shape smooth;
0081 
0082 
0083 private:
0084 
0085 
0086 
0087 
0088 };
0089 
0090 
0091 
0092 
0093 
0094 
0095 
0096 #endif // _Geom_SweptSurface_HeaderFile