STEP export: fix hole cutting counter message.
This commit is contained in:
parent
7fcce5224d
commit
83e9d87cde
|
@ -795,9 +795,6 @@ bool STEP_PCB_MODEL::CreatePCB( SHAPE_POLY_SET& aOutline, VECTOR2D aOrigin )
|
||||||
|
|
||||||
const TColStd_ListOfInteger& indices = bsb.Compare( shapeBbox );
|
const TColStd_ListOfInteger& indices = bsb.Compare( shapeBbox );
|
||||||
|
|
||||||
if( indices.IsEmpty() )
|
|
||||||
continue;
|
|
||||||
|
|
||||||
TopTools_ListOfShape holelist;
|
TopTools_ListOfShape holelist;
|
||||||
|
|
||||||
for( const Standard_Integer& index : indices )
|
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,
|
ReportMessage( wxString::Format( _( "Cutting %d/%d %s\n" ), cnt,
|
||||||
(int) aShapesList.size(), aWhat ) );
|
(int) aShapesList.size(), aWhat ) );
|
||||||
|
|
||||||
TopTools_ListOfShape mainbrd;
|
if( holelist.IsEmpty() )
|
||||||
mainbrd.Append( shape );
|
continue;
|
||||||
|
|
||||||
BRepAlgoAPI_Cut Cut;
|
TopTools_ListOfShape cutArgs;
|
||||||
Cut.SetArguments( mainbrd );
|
cutArgs.Append( shape );
|
||||||
|
|
||||||
Cut.SetTools( holelist );
|
BRepAlgoAPI_Cut cut;
|
||||||
Cut.Build();
|
cut.SetArguments( cutArgs );
|
||||||
|
|
||||||
shape = Cut.Shape();
|
cut.SetTools( holelist );
|
||||||
|
cut.Build();
|
||||||
|
|
||||||
|
shape = cut.Shape();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue