|
|
|||
File indexing completed on 2026-09-22 08:59:17
0001 // Created on: 1999-05-21 0002 // Created by: Pavel DURANDIN 0003 // Copyright (c) 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 _ShapeUpgrade_ConvertSurfaceToBezierBasis_HeaderFile 0018 #define _ShapeUpgrade_ConvertSurfaceToBezierBasis_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <ShapeUpgrade_SplitSurface.hxx> 0024 class ShapeExtend_CompositeSurface; 0025 0026 //! Converts a plane, bspline surface, surface of revolution, surface 0027 //! of extrusion, offset surface to grid of bezier basis surface ( 0028 //! bezier surface, 0029 //! surface of revolution based on bezier curve, 0030 //! offset surface based on any previous type). 0031 class ShapeUpgrade_ConvertSurfaceToBezierBasis : public ShapeUpgrade_SplitSurface 0032 { 0033 0034 public: 0035 //! Empty constructor. 0036 Standard_EXPORT ShapeUpgrade_ConvertSurfaceToBezierBasis(); 0037 0038 //! Splits a list of beziers computed by Compute method according 0039 //! the split values and splitting parameters. 0040 Standard_EXPORT void Build(const bool Segment) override; 0041 0042 //! Converts surface into a grid of bezier based surfaces, and 0043 //! stores this grid. 0044 Standard_EXPORT void Compute(const bool Segment) override; 0045 0046 //! Returns the grid of bezier based surfaces correspondent to 0047 //! original surface. 0048 Standard_EXPORT occ::handle<ShapeExtend_CompositeSurface> Segments() const; 0049 0050 //! Sets mode for conversion Geom_Plane to Bezier 0051 void SetPlaneMode(const bool mode); 0052 0053 //! Returns the Geom_Pline conversion mode. 0054 bool GetPlaneMode() const; 0055 0056 //! Sets mode for conversion Geom_SurfaceOfRevolution to Bezier 0057 void SetRevolutionMode(const bool mode); 0058 0059 //! Returns the Geom_SurfaceOfRevolution conversion mode. 0060 bool GetRevolutionMode() const; 0061 0062 //! Sets mode for conversion Geom_SurfaceOfLinearExtrusion to Bezier 0063 void SetExtrusionMode(const bool mode); 0064 0065 //! Returns the Geom_SurfaceOfLinearExtrusion conversion mode. 0066 bool GetExtrusionMode() const; 0067 0068 //! Sets mode for conversion Geom_BSplineSurface to Bezier 0069 void SetBSplineMode(const bool mode); 0070 0071 //! Returns the Geom_BSplineSurface conversion mode. 0072 bool GetBSplineMode() const; 0073 0074 DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_ConvertSurfaceToBezierBasis, ShapeUpgrade_SplitSurface) 0075 0076 private: 0077 occ::handle<ShapeExtend_CompositeSurface> mySegments; 0078 bool myPlaneMode; 0079 bool myRevolutionMode; 0080 bool myExtrusionMode; 0081 bool myBSplineMode; 0082 }; 0083 0084 #include <ShapeUpgrade_ConvertSurfaceToBezierBasis.lxx> 0085 0086 #endif // _ShapeUpgrade_ConvertSurfaceToBezierBasis_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|