]> OCCT Git - occt-copy.git/commitdiff
#314 Integration of the Message_ProgressIndicator in the BRep_Mesh and Express_Mesh
authorgka <gka@opencascade.com>
Tue, 15 Sep 2020 12:03:35 +0000 (15:03 +0300)
committergka <gka@opencascade.com>
Tue, 15 Sep 2020 12:27:07 +0000 (15:27 +0300)
Second patch for binaries compatibility with 3rd party products

src/BRepMesh/BRepMesh_DiscretRoot.hxx
src/BRepMesh/BRepMesh_FastDiscret.hxx
src/BRepMesh/BRepMesh_IncrementalMesh.cxx
src/BRepMesh/BRepMesh_IncrementalMesh.hxx

index 788747321aa16a6cdaec7657fb8bff625825ca49..cbdda70e7774ae6c1a24f5439529c16dd7e0477f 100644 (file)
@@ -46,8 +46,12 @@ public:
     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)
index fb4512e7609862a2617c4dd666c6106c889553e7..b7691afd76a880da9c22226cc553c6376341b0cd 100644 (file)
@@ -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 = NULL) const;
+  Standard_EXPORT void Process(const TopoDS_Face& theFace, Message_ProgressSentry& theProgrEntry) const;
 
   void operator () (const BRepMesh_FaceSentry& aFaceSentry) const
   {
index 40d4f8905bb27a07737c9c9f7894c1f1b6c675b5..9a5cd9cb5e6cb034cf8a5589d2507c4500083de8 100644 (file)
@@ -103,6 +103,17 @@ BRepMesh_IncrementalMesh::BRepMesh_IncrementalMesh( const TopoDS_Shape&    theSh
   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  : 
@@ -206,6 +217,17 @@ void BRepMesh_IncrementalMesh::collectFaces()
 //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();
index 5cd50633ee2017d3700511161cd8ccc6f88312ac..0f7601b4b9b04687778fc0b01a30deed95bec95a 100644 (file)
@@ -64,12 +64,23 @@ public: //! @name mesher API
   //! 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.