mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0022746: Progress indicator in ShapeHealing
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
#include <XSAlgo.hxx>
|
||||
#include <XSAlgo_AlgoContainer.hxx>
|
||||
|
||||
#include <Draw_ProgressIndicator.hxx>
|
||||
|
||||
static int dejadraw = 0;
|
||||
|
||||
//=======================================================================
|
||||
@@ -168,8 +170,9 @@ static Standard_Integer NSPApply (Draw_Interpretor& di, Standard_Integer argc, c
|
||||
|
||||
XSAlgo::AlgoContainer()->PrepareForTransfer();
|
||||
Handle(Standard_Transient) info; // reserved for special uses
|
||||
Handle(Draw_ProgressIndicator) aProgress = new Draw_ProgressIndicator (di, 1);
|
||||
newshape = XSAlgo::AlgoContainer()->ProcessShape
|
||||
( shape, tol, maxtol, argv[3] , argv[4] , info);
|
||||
( shape, tol, maxtol, argv[3] , argv[4] , info, aProgress);
|
||||
// WHAT IS MISSING HERE IS MERGING with starting transfer map
|
||||
|
||||
if (newshape.IsNull()) {
|
||||
|
@@ -44,6 +44,8 @@
|
||||
#include <TopTools_DataMapOfShapeListOfShape.hxx>
|
||||
#include <TopAbs_State.hxx>
|
||||
|
||||
#include <Draw_ProgressIndicator.hxx>
|
||||
|
||||
#ifdef AIX
|
||||
#include <strings.h>
|
||||
#endif
|
||||
@@ -437,10 +439,11 @@ static Standard_Integer fixshape (Draw_Interpretor& di, Standard_Integer argc, c
|
||||
di << "For enhanced message output, use switch '+?'" << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
sfs->Perform();
|
||||
|
||||
Handle(Draw_ProgressIndicator) aProgress = new Draw_ProgressIndicator (di, 1);
|
||||
sfs->Perform (aProgress);
|
||||
DBRep::Set (res,sfs->Shape());
|
||||
|
||||
|
||||
if ( mess ) {
|
||||
Standard_Integer num = 0;
|
||||
const ShapeExtend_DataMapOfShapeListOfMsg &map = msg->MapShape();
|
||||
|
Reference in New Issue
Block a user