From 14324364f03421b62cd557d8af3c1d0f14a2bec0 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 3 Feb 2012 06:58:36 +0000 Subject: [PATCH] fix compile with OCE on Win32 --- contrib/Salome/Partition_Loop2d.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/Salome/Partition_Loop2d.cxx b/contrib/Salome/Partition_Loop2d.cxx index 7c0ba8d297..93b18598c7 100644 --- a/contrib/Salome/Partition_Loop2d.cxx +++ b/contrib/Salome/Partition_Loop2d.cxx @@ -476,7 +476,11 @@ static TopoDS_Edge MakeDegenAndSelect(const TopoDS_Edge& CE, if ( ! CV.IsSame( TopExp::FirstVertex( E , Standard_True ))) continue; NE = E; +#if defined(WIN32) // fix for OCE on win32 + dUmin = dU + (dU+1e-12); +#else dUmin = dU + Epsilon(dU); +#endif U2 = USeq(i); } -- GitLab