return myIsDone;
}
+ //! Compute triangulation for set shape.
+ Standard_EXPORT virtual void Perform () =0;
+
+
//! Compute triangulation for set shape.
- Standard_EXPORT virtual void Perform (const Handle(Message_ProgressIndicator) &theProgress = NULL) = 0;
+ Standard_EXPORT virtual void Perform (const Handle(Message_ProgressIndicator) &theProgress ) = 0;
DEFINE_STANDARD_RTTIEXT(BRepMesh_DiscretRoot,Standard_Transient)
//! Triangulate a face previously recorded for
//! processing by call to Add(). Can be executed in
//! parallel threads.
- Standard_EXPORT void Process(const TopoDS_Face& theFace, Message_ProgressSentry& theProgrEntry = NULL) const;
+ Standard_EXPORT void Process(const TopoDS_Face& theFace, Message_ProgressSentry& theProgrEntry) const;
void operator () (const BRepMesh_FaceSentry& aFaceSentry) const
{
Perform();
}
+//=======================================================================
+//function : Constructor
+//purpose :
+//=======================================================================
+BRepMesh_IncrementalMesh::BRepMesh_IncrementalMesh (const TopoDS_Shape& theShape,
+ const BRepMesh_FastDiscret::Parameters& theParameters) :
+ myParameters(theParameters)
+{
+ myShape = theShape;
+ Perform();
+}
//=======================================================================
//function : Constructor
//purpose :
//function : Perform
//purpose :
//=======================================================================
+void BRepMesh_IncrementalMesh::Perform()
+{
+ Handle(Message_ProgressIndicator) aProgress;
+ Perform(aProgress);
+}
+
+//=======================================================================
+//function : Perform
+//purpose :
+//=======================================================================
+
void BRepMesh_IncrementalMesh::Perform(const Handle(Message_ProgressIndicator) &theProgress)
{
init();
//! Automatically calls method Perform.
//! @param theShape shape to be meshed.
//! @param theParameters - parameters of meshing
+ Standard_EXPORT BRepMesh_IncrementalMesh (const TopoDS_Shape& theShape,
+ const BRepMesh_FastDiscret::Parameters& theParameters);
+
+ //! Constructor.
+ //! Automatically calls method Perform.
+ //! @param theShape shape to be meshed.
+ //! @param theParameters - parameters of meshing
+ //! @param theProgress - progress indicator
Standard_EXPORT BRepMesh_IncrementalMesh (const TopoDS_Shape& theShape,
const BRepMesh_FastDiscret::Parameters& theParameters,
- const Handle(Message_ProgressIndicator) &theProgress = NULL);
+ const Handle(Message_ProgressIndicator) &theProgress);
+
+ // //! Performs meshing ot the shape.
+ Standard_EXPORT virtual void Perform() Standard_OVERRIDE;
//! Performs meshing ot the shape.
- Standard_EXPORT virtual void Perform(const Handle(Message_ProgressIndicator) &theProgress = NULL) Standard_OVERRIDE;
+ Standard_EXPORT virtual void Perform(const Handle(Message_ProgressIndicator) &theProgress) Standard_OVERRIDE;
public: //! @name accessing to parameters.