Sketcher: Fillet increase debugging verbose and disable by default

This commit is contained in:
Abdullah Tahiri
2018-11-12 14:29:56 +01:00
committed by wmayer
parent 75b939eb21
commit 50af914311

View File

@@ -83,8 +83,8 @@
#include <Mod/Sketcher/App/SketchObjectPy.h>
//#undef DEBUG
#define DEBUG
#undef DEBUG
//#define DEBUG
using namespace Sketcher;
using namespace Base;
@@ -1650,11 +1650,21 @@ int SketchObject::fillet(int GeoId1, int GeoId2,
THROWM(Base::CADKernelError,"Unable to find intersection between offset curves.")
}
#ifdef DEBUG
for(auto inter:offsetintersectionpoints) {
Base::Console().Log("offset int(%f,%f,0)\n",inter.first.x,inter.first.y);
}
#endif
int res = selectintersection(offsetintersectionpoints,filletcenterpoint,refPnt1, refPnt2);
if(res != 0)
return res;
#ifdef DEBUG
Base::Console().Log("selected offset int(%f,%f,0)\n",filletcenterpoint.first.x,filletcenterpoint.first.y);
#endif
double refoparam1;
double refoparam2;