Skip to content
Snippets Groups Projects
Commit 27946bcc authored by patmjen's avatar patmjen
Browse files

Fix bug in hyperplane intersection function

parent c6405148
Branches
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ constexpr double DBL_NAN = std::numeric_limits<double>::quiet_NaN();
inline int robustSign(float x, float tol)
{
return -static_cast<int>(x < tol) + static_cast<int>(x > tol);
return -static_cast<int>(x < -tol) + static_cast<int>(x > tol);
}
inline Vec4f getVert(const Volume<float>& vertVol, int vertIdx)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment