From a6563c117048fc3a9edffe0301efd9fed11c4b77 Mon Sep 17 00:00:00 2001 From: Daniel Wood Date: Wed, 29 Apr 2020 21:31:07 +0100 Subject: [PATCH] Remove and silence some debug prints --- src/Mod/Path/PathSimulator/App/VolSim.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Mod/Path/PathSimulator/App/VolSim.cpp b/src/Mod/Path/PathSimulator/App/VolSim.cpp index e313e12fc8..3c8cab6d21 100644 --- a/src/Mod/Path/PathSimulator/App/VolSim.cpp +++ b/src/Mod/Path/PathSimulator/App/VolSim.cpp @@ -726,15 +726,11 @@ cSimTool::cSimTool(const TopoDS_Shape& toolShape, float res){ boundBox.Get(xMin, yMin, zMin, xMax, yMax, zMax); radius = (xMax - xMin) / 2; length = zMax - zMin; - // Report the size of the bounding box - //Base::Console().Log("PathSim::SetToolShape: radius: %f length: %f\n", radius, length); Base::Vector3d pnt; pnt.x = 0; pnt.y = 0; pnt.z = 0; - //float res = 0.025; // resolution - Base::Console().Log("PathSim::SetToolShape: res: %f\n", res); int radValue = (int)(radius / res) + 1; @@ -784,11 +780,11 @@ float cSimTool::GetToolProfileAt(float pos) // pos is -1..1 location along the float radPos = std::abs(pos) * radius; toolShapePoint test; test.radiusPos = radPos; auto it = std::lower_bound(m_toolShape.begin(), m_toolShape.end(), test, toolShapePoint::less_than()); - float diff = std::abs(radPos - it->radiusPos); + //float diff = std::abs(radPos - it->radiusPos); - if (diff > 0.05){ - Base::Console().Log("requested pos: %f rad: %f diff: %f\n", radPos, it->radiusPos, diff); - } + //if (diff > 0.05){ + // Base::Console().Log("requested pos: %f rad: %f diff: %f\n", radPos, it->radiusPos, diff); + //} return it->heightPos; }