|
|
|||
File indexing completed on 2026-09-12 09:18:34
0001 // Created on: 2001-08-28 0002 // Created by: data exchange team 0003 // Copyright (c) 2001-2014 OPEN CASCADE SAS 0004 // 0005 // This file is part of Open CASCADE Technology software library. 0006 // 0007 // This library is free software; you can redistribute it and/or modify it under 0008 // the terms of the GNU Lesser General Public License version 2.1 as published 0009 // by the Free Software Foundation, with special exception defined in the file 0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0011 // distribution for complete text of the license and disclaimer of any warranty. 0012 // 0013 // Alternatively, this file may be used under the terms of Open CASCADE 0014 // commercial license or contractual agreement. 0015 0016 #ifndef _ShapeCustom_Curve_HeaderFile 0017 #define _ShapeCustom_Curve_HeaderFile 0018 0019 #include <Standard.hxx> 0020 #include <Standard_DefineAlloc.hxx> 0021 #include <Standard_Handle.hxx> 0022 0023 class Geom_Curve; 0024 0025 //! Converts BSpline curve to periodic 0026 class ShapeCustom_Curve 0027 { 0028 public: 0029 DEFINE_STANDARD_ALLOC 0030 0031 Standard_EXPORT ShapeCustom_Curve(); 0032 0033 Standard_EXPORT ShapeCustom_Curve(const occ::handle<Geom_Curve>& C); 0034 0035 Standard_EXPORT void Init(const occ::handle<Geom_Curve>& C); 0036 0037 //! Tries to convert the Curve to the Periodic form 0038 //! Returns the resulting curve 0039 //! Works only if the Curve is BSpline and is closed with 0040 //! Precision::Confusion() 0041 //! Else, or in case of failure, returns a Null Handle 0042 Standard_EXPORT occ::handle<Geom_Curve> ConvertToPeriodic(const bool substitute, 0043 const double preci = -1); 0044 0045 private: 0046 occ::handle<Geom_Curve> myCurve; 0047 }; 0048 0049 #endif // _ShapeCustom_Curve_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|