STEP export: fix hole cutting counter message.

This commit is contained in:
Alex Shvartzkop 2023-08-24 14:26:27 +03:00
parent 7fcce5224d
commit 83e9d87cde
1 changed files with 10 additions and 10 deletions

View File

@ -795,9 +795,6 @@ bool STEP_PCB_MODEL::CreatePCB( SHAPE_POLY_SET& aOutline, VECTOR2D aOrigin )
const TColStd_ListOfInteger& indices = bsb.Compare( shapeBbox );
if( indices.IsEmpty() )
continue;
TopTools_ListOfShape holelist;
for( const Standard_Integer& index : indices )
@ -812,16 +809,19 @@ bool STEP_PCB_MODEL::CreatePCB( SHAPE_POLY_SET& aOutline, VECTOR2D aOrigin )
ReportMessage( wxString::Format( _( "Cutting %d/%d %s\n" ), cnt,
(int) aShapesList.size(), aWhat ) );
TopTools_ListOfShape mainbrd;
mainbrd.Append( shape );
if( holelist.IsEmpty() )
continue;
BRepAlgoAPI_Cut Cut;
Cut.SetArguments( mainbrd );
TopTools_ListOfShape cutArgs;
cutArgs.Append( shape );
Cut.SetTools( holelist );
Cut.Build();
BRepAlgoAPI_Cut cut;
cut.SetArguments( cutArgs );
shape = Cut.Shape();
cut.SetTools( holelist );
cut.Build();
shape = cut.Shape();
}
};