1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0025604: To provide info on what has been done by DropSmallSolids operator

This commit is contained in:
eap
2014-12-12 20:09:46 +03:00
committed by bugmaster
parent d5a9d0da1c
commit 7c8996f49f
5 changed files with 32 additions and 4 deletions

View File

@@ -592,7 +592,12 @@ static Standard_Boolean dropsmallsolids (const Handle(ShapeProcess_Context)& con
Handle(ShapeProcess_ShapeContext)::DownCast (context);
if (ctx.IsNull()) return Standard_False;
// activate message mechanism if it is supported by context
Handle(ShapeExtend_MsgRegistrator) msg;
if ( ! ctx->Messages().IsNull() ) msg = new ShapeExtend_MsgRegistrator;
ShapeFix_FixSmallSolid FSS;
FSS.SetMsgRegistrator( msg );
Standard_Real aThreshold;
if (ctx->GetReal ("VolumeThreshold", aThreshold))
@@ -613,7 +618,7 @@ static Standard_Boolean dropsmallsolids (const Handle(ShapeProcess_Context)& con
if (aResult != ctx->Result())
{
ctx->RecordModification (aReShape);
ctx->RecordModification (aReShape, msg);
ctx->SetResult (aResult);
}