fix double vs. float problem to solve problems in Mesh.nearestFacetOnRay

This commit is contained in:
wmayer
2019-01-08 19:13:50 +01:00
parent 89cf78b262
commit d37d7455d0
6 changed files with 24 additions and 22 deletions

View File

@@ -641,7 +641,8 @@ bool MeshGeomFacet::Foraminate (const Base::Vector3f &P, const Base::Vector3f &d
// check angle between facet normal and the line direction, FLOAT_MAX is
// returned for degenerated facets
if (dir.GetAngle(n) > fMaxAngle)
float fAngle = dir.GetAngle(n);
if (fAngle > fMaxAngle)
return false;
float nn = n * n;