diff --git a/entity.cpp b/entity.cpp index c65d65f..01b18b5 100644 --- a/entity.cpp +++ b/entity.cpp @@ -649,6 +649,7 @@ void Entity::DrawOrGetDistance(int order) { tail = SS.GW.projRight.ScaledBy(w/s).Plus( SS.GW.projUp. ScaledBy(h/s)).Plus( gn.ScaledBy(-4*w/s)).Minus(SS.GW.offset); + glLineWidth(2); } Vector v = (q.RotationN()).WithMagnitude(50/SS.GW.scale); @@ -660,6 +661,7 @@ void Entity::DrawOrGetDistance(int order) { LineDrawOrGetDistance(tip,tip.Minus(v.RotatedAbout(axis, 0.6))); LineDrawOrGetDistance(tip,tip.Minus(v.RotatedAbout(axis,-0.6))); } + glLineWidth(1); break; } diff --git a/sketch.cpp b/sketch.cpp index 23fec1e..7cdf196 100644 --- a/sketch.cpp +++ b/sketch.cpp @@ -75,7 +75,7 @@ void Group::MenuGroup(int id) { g.type = EXTRUDE; g.opA = SS.GW.activeGroup; g.wrkpl.entityB = SS.GW.activeWorkplane; - g.subtype = EXTRUDE_TWO_SIDED; + g.subtype = EXTRUDE_ONE_SIDED; g.name.strcpy("extrude"); break; diff --git a/solvespace.h b/solvespace.h index 84888c9..5490ac8 100644 --- a/solvespace.h +++ b/solvespace.h @@ -4,7 +4,7 @@ // Debugging functions #define oops() do { dbp("oops at line %d, file %s", __LINE__, __FILE__); \ - if(0) *(char *)0 = 1; exit(-1); } while(0) + if(1) *(char *)0 = 1; exit(-1); } while(0) #ifndef min #define min(x, y) ((x) < (y) ? (x) : (y)) #endif diff --git a/system.cpp b/system.cpp index 7f9c729..df50b00 100644 --- a/system.cpp +++ b/system.cpp @@ -313,7 +313,7 @@ bool System::SolveLeastSquares(void) { bool System::NewtonSolve(int tag) { WriteJacobian(tag, tag); - if(mat.m > mat.n) oops(); + if(mat.m > mat.n) return false; int iter = 0; bool converged = false;