// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _ShapeCustom_Surface_HeaderFile #define _ShapeCustom_Surface_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Handle_Geom_Surface_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class Geom_Surface; //! Converts a surface to the analitical form with given
//! precision. Conversion is done only the surface is bspline
//! of bezier and this can be approximed by some analytical
//! surface with that precision.
class ShapeCustom_Surface { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } Standard_EXPORT ShapeCustom_Surface(); Standard_EXPORT ShapeCustom_Surface(const Handle(Geom_Surface)& S); Standard_EXPORT void Init(const Handle(Geom_Surface)& S) ; //! Returns maximal deviation of converted surface from the original
//! one computed by last call to ConvertToAnalytical
Standard_Real Gap() const; //! Tries to convert the Surface to an Analytic form
//! Returns the result
//! Works only if the Surface is BSpline or Bezier.
//! Else, or in case of failure, returns a Null Handle
Standard_EXPORT Handle_Geom_Surface ConvertToAnalytical(const Standard_Real tol,const Standard_Boolean substitute) ; //! Tries to convert the Surface to the Periodic form
//! Returns the resulting surface
//! Works only if the Surface is BSpline and is closed with
//! Precision::Confusion()
//! Else, or in case of failure, returns a Null Handle
Standard_EXPORT Handle_Geom_Surface ConvertToPeriodic(const Standard_Boolean substitute,const Standard_Real preci = -1) ; protected: private: Handle_Geom_Surface mySurf; Standard_Real myGap; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif