From: akaftasev Date: Wed, 16 Feb 2022 10:17:58 +0000 (+0300) Subject: 0032839: BRepMesh_IncrementalMesh - The ability to pass progress indication to one... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=551d35ab93ec5cce9462ba0f43139acb0da7c4e8;p=occt.git 0032839: BRepMesh_IncrementalMesh - The ability to pass progress indication to one of the constructors was not added Added progress indication to the constructor of the BRepMesh_IncrementalMesh --- diff --git a/src/BRepMesh/BRepMesh_IncrementalMesh.cxx b/src/BRepMesh/BRepMesh_IncrementalMesh.cxx index cbd18c4aa3..e286c4aac4 100644 --- a/src/BRepMesh/BRepMesh_IncrementalMesh.cxx +++ b/src/BRepMesh/BRepMesh_IncrementalMesh.cxx @@ -48,7 +48,8 @@ BRepMesh_IncrementalMesh::BRepMesh_IncrementalMesh( const TopoDS_Shape& theSh const Standard_Real theLinDeflection, const Standard_Boolean isRelative, const Standard_Real theAngDeflection, - const Standard_Boolean isInParallel) + const Standard_Boolean isInParallel, + const Message_ProgressRange& theRange) : myModified(Standard_False), myStatus(IMeshData_NoError) { @@ -58,7 +59,7 @@ BRepMesh_IncrementalMesh::BRepMesh_IncrementalMesh( const TopoDS_Shape& theSh myParameters.InParallel = isInParallel; myShape = theShape; - Perform(); + Perform(theRange); } //======================================================================= diff --git a/src/BRepMesh/BRepMesh_IncrementalMesh.hxx b/src/BRepMesh/BRepMesh_IncrementalMesh.hxx index 3853c84075..63599f9575 100644 --- a/src/BRepMesh/BRepMesh_IncrementalMesh.hxx +++ b/src/BRepMesh/BRepMesh_IncrementalMesh.hxx @@ -43,7 +43,8 @@ public: //! @name mesher API const Standard_Real theLinDeflection, const Standard_Boolean isRelative = Standard_False, const Standard_Real theAngDeflection = 0.5, - const Standard_Boolean isInParallel = Standard_False); + const Standard_Boolean isInParallel = Standard_False, + const Message_ProgressRange& theRange = Message_ProgressRange()); //! Constructor. //! Automatically calls method Perform.