0025113: Mesh - Progress indication and user break functionality for BRepMesh component
[occt.git] / src / BRepMesh / BRepMesh_NodeInsertionMeshAlgo.hxx
index 54f80fd..e1f5b77 100644 (file)
@@ -47,11 +47,16 @@ public:
   //! Performs processing of the given face.
   virtual void Perform(
     const IMeshData::IFaceHandle& theDFace,
-    const IMeshTools_Parameters&  theParameters) Standard_OVERRIDE
+    const IMeshTools_Parameters&  theParameters,
+    const Message_ProgressRange&  theRange) Standard_OVERRIDE
   {
     myRangeSplitter.Reset(theDFace, theParameters);
     myClassifier = new BRepMesh_Classifier;
-    BaseAlgo::Perform(theDFace, theParameters);
+    if (!theRange.More())
+    {
+      return;
+    }
+    BaseAlgo::Perform(theDFace, theParameters, theRange);
     myClassifier.Nullify();
   }