]> OCCT Git - occt.git/commitdiff
0032839: BRepMesh_IncrementalMesh - The ability to pass progress indication to one... CR32839
authorakaftasev <akaftasev@opencascade.com>
Wed, 16 Feb 2022 10:17:58 +0000 (13:17 +0300)
committerakaftasev <akaftasev@opencascade.com>
Wed, 16 Feb 2022 10:17:58 +0000 (13:17 +0300)
Added progress indication to the constructor of the BRepMesh_IncrementalMesh

src/BRepMesh/BRepMesh_IncrementalMesh.cxx
src/BRepMesh/BRepMesh_IncrementalMesh.hxx

index cbd18c4aa394ce6729624e1d53609c2bb7c97584..e286c4aac4981b7db90b480ace4bb1077e5a6af5 100644 (file)
@@ -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);
 }
 
 //=======================================================================
index 3853c84075761257ed05a609ac931a942e835325..63599f95758c61ef99ea2913e9f99ebb33259943 100644 (file)
@@ -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.