Commit 70c5a48f authored by Sylvain Thery's avatar Sylvain Thery

abs error

parent cb353692
......@@ -270,7 +270,7 @@ bool isPointOnHalfEdge(typename PFP::MAP& map, Dart d, const VertexAttribute<typ
v1.normalize();
v2.normalize();
return abs(v1*v2) <= REAL(0.00001);
return std::abs(v1*v2) <= REAL(0.00001);
}
template <typename PFP>
......
......@@ -504,7 +504,7 @@ Intersection intersectionSegmentPlan(const VEC3& PA, const VEC3& PB, const VEC3&
typename VEC3::DATA_TYPE panp = NormP * (PA-PlaneP);
typename VEC3::DATA_TYPE pbnp = NormP * (PB-PlaneP);
if(abs(panp) < EPSILON || abs(pbnp) < EPSILON)
if(std::abs(panp) < EPSILON || std::abs(pbnp) < EPSILON)
return VERTEX_INTERSECTION;
// else if((panp < 0 && pbnp > 0) || (panp > 0 && pbnp < 0))
else if (panp*pbnp < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment