// 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 _BRepMesh_DiscretRoot_HeaderFile #define _BRepMesh_DiscretRoot_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_BRepMesh_DiscretRoot_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _TopoDS_Shape_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Transient_HeaderFile #include #endif class TopoDS_Shape; //! This is a common interface for meshing algorithms
//! instantiated by Mesh Factory and implemented by plugins.
class BRepMesh_DiscretRoot : public Standard_Transient { public: //! Setup linear deflection.
Standard_EXPORT void SetDeflection(const Standard_Real theDeflection) ; Standard_EXPORT virtual ~BRepMesh_DiscretRoot(); //! Returns linear deflection.
Standard_EXPORT Standard_Real Deflection() const; //! Setup angular deflection.
Standard_EXPORT void SetAngle(const Standard_Real theAngle) ; //! Returns angular deflection.
Standard_EXPORT Standard_Real Angle() const; //! Set the shape to triangulate.
Standard_EXPORT void SetShape(const TopoDS_Shape& theShape) ; Standard_EXPORT const TopoDS_Shape& Shape() const; //! Compute triangulation for set shape.
Standard_EXPORT virtual void Perform() = 0; //! Returns true if triangualtion was performed and has success.
Standard_EXPORT Standard_Boolean IsDone() const; DEFINE_STANDARD_RTTI(BRepMesh_DiscretRoot) protected: Standard_EXPORT BRepMesh_DiscretRoot(); Standard_EXPORT void SetDone() ; Standard_EXPORT void SetNotDone() ; Standard_EXPORT virtual void Init() ; Standard_Real myDeflection; Standard_Real myAngle; TopoDS_Shape myShape; Standard_Boolean myIsDone; private: }; // other Inline functions and methods (like "C++: function call" methods) #endif