diff --git a/STP2X3D/STP2X3D.cpp b/STP2X3D/STP2X3D.cpp index b23dd18..508a9f6 100644 --- a/STP2X3D/STP2X3D.cpp +++ b/STP2X3D/STP2X3D.cpp @@ -340,7 +340,7 @@ int main(int argc, char * argv[]) int status = -1; // Translation status #if _DEBUG - opt.SetInput(L"C:\\Users\\User\\Desktop\\transparency\\MESIN CNC BALL CUTTING FULL ASM.stp"); + opt.SetInput(L"C:\\Users\\User\\Desktop\\s2x\\testcases\\box1.stp"); opt.SetNormal(0); opt.SetColor(1); opt.SetEdge(1); diff --git a/STP2X3D/StatsPrinter.h b/STP2X3D/StatsPrinter.h index 4848703..1967c69 100644 --- a/STP2X3D/StatsPrinter.h +++ b/STP2X3D/StatsPrinter.h @@ -14,8 +14,8 @@ class StatsPrinter assert(!bndBox.IsVoid()); // Bounding boxes are enlarged by the given tolerance - // i.e. linear deflection for tessellation - double tol = 2.5 / opt->Quality(); + // double tol = 2.5 / opt->Quality(); // v1.0 (linear deflection for tessellation) + double tol = bndBox.GetGap(); // v1.01 (gap set by OCC) double X_min = 0.0, Y_min = 0.0, Z_min = 0.0; double X_max = 0.0, Y_max = 0.0, Z_max = 0.0;