Skip to content

Commit

Permalink
bndbox tolerance modified
Browse files Browse the repository at this point in the history
  • Loading branch information
soonjokwon committed Mar 17, 2021
1 parent a2f7628 commit 516f254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion STP2X3D/STP2X3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions STP2X3D/StatsPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 516f254

Please sign in to comment.