Skip to content
Snippets Groups Projects
Commit 221a5428 authored by Tuomas Karna's avatar Tuomas Karna
Browse files

prism octree search fix

parent c8adbf94
No related branches found
No related tags found
No related merge requests found
......@@ -168,8 +168,8 @@ class MPrism : public MElement {
virtual bool isInside(double u, double v, double w)
{
double tol = _isInsideTolerance;
if(w > (1. + tol) || w < -(1. + tol) || u < (1. + tol)
|| v < (1. + tol) || u > ((1. + tol) - v))
if(w > (1. + tol) || w < -(1. + tol) || u < (-tol)
|| v < (-tol) || u > ((1. + tol) - v))
return false;
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment