|
|
|||
File indexing completed on 2026-09-29 09:18:51
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 //! Describes the common behavior for surfaces 0029 //! constructed by sweeping a curve with another curve. 0030 //! The Geom package provides two concrete derived 0031 //! surfaces: surface of revolution (a revolved surface), 0032 //! and surface of linear extrusion (an extruded surface). 0033 class Geom_SweptSurface : public Geom_Surface 0034 { 0035 0036 public: 0037 //! returns the continuity of the surface : 0038 //! C0 : only geometric continuity, 0039 //! C1 : continuity of the first derivative all along the surface, 0040 //! C2 : continuity of the second derivative all along the surface, 0041 //! C3 : continuity of the third derivative all along the surface, 0042 //! G1 : tangency continuity all along the surface, 0043 //! G2 : curvature continuity all along the surface, 0044 //! CN : the order of continuity is infinite. 0045 Standard_EXPORT GeomAbs_Shape Continuity() const override; 0046 0047 //! Returns the reference direction of the swept surface. 0048 //! For a surface of revolution it is the direction of the 0049 //! revolution axis, for a surface of linear extrusion it is 0050 //! the direction of extrusion. 0051 Standard_EXPORT const gp_Dir& Direction() const; 0052 0053 //! Returns the referenced curve of the surface. 0054 //! For a surface of revolution it is the revolution curve, 0055 //! for a surface of linear extrusion it is the extruded curve. 0056 Standard_EXPORT occ::handle<Geom_Curve> BasisCurve() const; 0057 0058 //! Dumps the content of me into the stream 0059 Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override; 0060 0061 DEFINE_STANDARD_RTTIEXT(Geom_SweptSurface, Geom_Surface) 0062 0063 protected: 0064 occ::handle<Geom_Curve> basisCurve; 0065 gp_Dir direction; 0066 GeomAbs_Shape smooth; 0067 }; 0068 0069 #endif // _Geom_SweptSurface_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|