handle possible crashes with FaceMaker and fix a few coding flaws

This commit is contained in:
wmayer
2016-10-02 14:47:59 +02:00
parent 679bb2f5a8
commit da406cddb8
11 changed files with 48 additions and 28 deletions

View File

@@ -110,7 +110,7 @@ void FaceMakerBullseye::Build_Essence()
//add wires one by one to current set of faces.
//We go from last to first, to make it so that outer wires come before inner wires.
std::vector< std::unique_ptr<FaceDriller> > faces;
for( int i = wires.size()-1 ; i >= 0 ; --i){
for (int i = static_cast<int>(wires.size())-1; i >= 0; --i) {
TopoDS_Wire &w = wires[i];
//test if this wire is on any of existing faces (if yes, it's a hole;