// 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 _BRepLib_FindSurface_HeaderFile #define _BRepLib_FindSurface_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 #ifndef _TopLoc_Location_HeaderFile #include #endif class Geom_Surface; class Standard_NoSuchObject; class TopoDS_Shape; class TopLoc_Location; //! Provides an algorithm to find a Surface through a
//! set of edges.
//!
//! The edges of the shape given as argument are
//! explored if they are not coplanar at the required
//! tolerance the method Found returns false.
//!
//! If a null tolerance is given the max of the edges
//! tolerances is used.
//!
//! The method Tolerance returns the true distance of
//! the edges to the Surface.
//!
//! The method Surface returns the Surface if found.
//!
//! The method Existed returns returns True if the
//! Surface was already attached to some of the edges.
//!
//! When Existed returns True the Surface may have a
//! location given by the Location method.
class BRepLib_FindSurface { 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 BRepLib_FindSurface(); //! Computes the Surface from the edges of with the
//! given tolerance.
//! if is true, the computed surface will be
//! a plane. If it is not possible to find a plane, the
//! flag NotDone will be set.
Standard_EXPORT BRepLib_FindSurface(const TopoDS_Shape& S,const Standard_Real Tol = -1,const Standard_Boolean OnlyPlane = Standard_False); //! Computes the Surface from the edges of with the
//! given tolerance.
//! if is true, the computed surface will be
//! a plane. If it is not possible to find a plane, the
//! flag NotDone will be set.
Standard_EXPORT void Init(const TopoDS_Shape& S,const Standard_Real Tol = -1,const Standard_Boolean OnlyPlane = Standard_False) ; Standard_EXPORT Standard_Boolean Found() const; Standard_EXPORT Handle_Geom_Surface Surface() const; Standard_EXPORT Standard_Real Tolerance() const; Standard_EXPORT Standard_Real ToleranceReached() const; Standard_EXPORT Standard_Boolean Existed() const; Standard_EXPORT TopLoc_Location Location() const; protected: private: Handle_Geom_Surface mySurface; Standard_Real myTolerance; Standard_Real myTolReached; Standard_Boolean isExisted; TopLoc_Location myLocation; }; // other Inline functions and methods (like "C++: function call" methods) #endif