From c57d80e19a5b6f9e968904d0d087ec58d7df9102 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 2 May 2011 13:08:03 +0000
Subject: [PATCH] fix compile

---
 contrib/Salome/Partition_Inter3d.cxx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contrib/Salome/Partition_Inter3d.cxx b/contrib/Salome/Partition_Inter3d.cxx
index db6da22ec8..5777c7240a 100644
--- a/contrib/Salome/Partition_Inter3d.cxx
+++ b/contrib/Salome/Partition_Inter3d.cxx
@@ -248,7 +248,11 @@ static void PutInBounds (const TopoDS_Face&          F,
       Standard_Integer i, nbExt = anExtPS.NbExt();
       Extrema_POnSurf aPOnSurf;
       for (i = 1; i <= nbExt; ++i )
+#if (OCC_VERSION_MAJOR == 6) && (OCC_VERSION_MINOR < 5)
+        if (anExtPS.Value( i ) <= TolE) {
+#else
         if (anExtPS.SquareDistance( i ) <= TolE) {
+#endif
           aPOnSurf = anExtPS.Point( i );
           break;
         }
-- 
GitLab