From e87d182ada79827b7c3bb0b5b355e3391fb5c60e Mon Sep 17 00:00:00 2001 From: gka Date: Mon, 14 Sep 2020 11:19:16 +0300 Subject: [PATCH] Added progress indicator to BRepMesh_IncrementalMesh [0025113 for OCCT 7.2.0] Additional commit for binary compatibility with OCCT products --- src/BRepMesh/BRepMesh_FastDiscret.hxx | 2 +- src/Message/Message_ProgressSentry.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BRepMesh/BRepMesh_FastDiscret.hxx b/src/BRepMesh/BRepMesh_FastDiscret.hxx index b7691afd76..fb4512e760 100644 --- a/src/BRepMesh/BRepMesh_FastDiscret.hxx +++ b/src/BRepMesh/BRepMesh_FastDiscret.hxx @@ -130,7 +130,7 @@ public: //! 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) const; + Standard_EXPORT void Process(const TopoDS_Face& theFace, Message_ProgressSentry& theProgrEntry = NULL) const; void operator () (const BRepMesh_FaceSentry& aFaceSentry) const { diff --git a/src/Message/Message_ProgressSentry.hxx b/src/Message/Message_ProgressSentry.hxx index 8cc137c272..287d191eec 100644 --- a/src/Message/Message_ProgressSentry.hxx +++ b/src/Message/Message_ProgressSentry.hxx @@ -67,13 +67,13 @@ public: DEFINE_STANDARD_ALLOC - Standard_EXPORT Message_ProgressSentry(const Handle(Message_ProgressIndicator)& PI, const Standard_CString name, const Standard_Real min, const Standard_Real max, const Standard_Real step, const Standard_Boolean isInf = Standard_False, const Standard_Real newScopeSpan = 0.0); + Standard_EXPORT Message_ProgressSentry(const Handle(Message_ProgressIndicator)& progress, const Standard_CString name, const Standard_Real min, const Standard_Real max, const Standard_Real step, const Standard_Boolean isInf = Standard_False, const Standard_Real newScopeSpan = 0.0); //! Creates an instance of ProgressSentry attaching it to //! the specified ProgressIndicator, selects parameters of //! the current scale, and opens a new scope with specified //! span (equal to step by default) - Standard_EXPORT Message_ProgressSentry(const Handle(Message_ProgressIndicator)& PI, const Handle(TCollection_HAsciiString)& name, const Standard_Real min, const Standard_Real max, const Standard_Real step, const Standard_Boolean isInf = Standard_False, const Standard_Real newScopeSpan = 0.0); + Standard_EXPORT Message_ProgressSentry(const Handle(Message_ProgressIndicator)& progress, const Handle(TCollection_HAsciiString)& name, const Standard_Real min, const Standard_Real max, const Standard_Real step, const Standard_Boolean isInf = Standard_False, const Standard_Real newScopeSpan = 0.0); //! Moves progress indicator to the end of the current scale //! and relieves sentry from its duty. Methods other than Show() -- 2.39.5