// Created on: 1994-03-14 // Created by: Frederic UNTEREINER // Copyright (c) 1994-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _IGESToBRep_BasicSurface_HeaderFile #define _IGESToBRep_BasicSurface_HeaderFile #include "Standard.hxx" #include "Standard_DefineAlloc.hxx" #include "Standard_Handle.hxx" #include "IGESToBRep_CurveAndSurface.hxx" class Geom_Surface; class IGESData_IGESEntity; class Geom_Plane; class IGESSolid_PlaneSurface; class Geom_CylindricalSurface; class IGESSolid_CylindricalSurface; class Geom_ConicalSurface; class IGESSolid_ConicalSurface; class Geom_SphericalSurface; class IGESSolid_SphericalSurface; class Geom_ToroidalSurface; class IGESSolid_ToroidalSurface; class Geom_BSplineSurface; class IGESGeom_SplineSurface; class IGESGeom_BSplineSurface; //! Provides methods to transfer basic geometric surface entities //! from IGES to CASCADE. //! These can be: //! * Spline surface //! * BSpline surface class IGESToBRep_BasicSurface : public IGESToBRep_CurveAndSurface { public: DEFINE_STANDARD_ALLOC //! Creates a tool BasicSurface ready to run, with //! epsilons set to 1.E-04, TheModeTopo to True, the //! optimization of the continuity to False. Standard_EXPORT IGESToBRep_BasicSurface(); //! Creates a tool BasicSurface ready to run and sets its //! fields as CS's. Standard_EXPORT IGESToBRep_BasicSurface(const IGESToBRep_CurveAndSurface& CS); //! Creates a tool BasicSurface ready to run. Standard_EXPORT IGESToBRep_BasicSurface(const double eps, const double epsGeom, const double epsCoeff, const bool mode, const bool modeapprox, const bool optimized); //! Returns Surface from Geom if the last transfer has succeeded. Standard_EXPORT occ::handle TransferBasicSurface( const occ::handle& start); //! Returns Plane from Geom if the transfer has succeeded. Standard_EXPORT occ::handle TransferPlaneSurface( const occ::handle& start); //! Returns CylindricalSurface from Geom if the transfer has succeeded. Standard_EXPORT occ::handle TransferRigthCylindricalSurface( const occ::handle& start); //! Returns ConicalSurface from Geom if the transfer has succeeded. Standard_EXPORT occ::handle TransferRigthConicalSurface( const occ::handle& start); //! Returns SphericalSurface from Geom if the transfer has succeeded. Standard_EXPORT occ::handle TransferSphericalSurface( const occ::handle& start); //! Returns SphericalSurface from Geom if the transfer has succeeded. Standard_EXPORT occ::handle TransferToroidalSurface( const occ::handle& start); //! Returns BSplineSurface from Geom if the transfer has succeeded. Standard_EXPORT occ::handle TransferSplineSurface( const occ::handle& start); //! Returns BSplineSurface from Geom if the transfer has succeeded. Standard_EXPORT occ::handle TransferBSplineSurface( const occ::handle& start); }; #endif // _IGESToBRep_BasicSurface_HeaderFile