From e7803b6b966b93371a0a802850ee32e15ab50b61 Mon Sep 17 00:00:00 2001
From: Gaetan Bricteux <gaetan.bricteux@uclouvain.be>
Date: Mon, 12 Nov 2012 10:47:13 +0000
Subject: [PATCH] fix compile

---
 Mesh/surfaceFiller.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Mesh/surfaceFiller.cpp b/Mesh/surfaceFiller.cpp
index 0d143564e1..c637e4626e 100644
--- a/Mesh/surfaceFiller.cpp
+++ b/Mesh/surfaceFiller.cpp
@@ -25,7 +25,7 @@ static const double DIRS [NUMDIR] = {0.0, M_PI/20.,-M_PI/20.};
 /// in a r-tree structure for generating points with the
 /// right spacing in the tangent plane
 
-
+#if defined(HAVE_RTREE)
 struct surfacePointWithExclusionRegion {  
   MVertex *_v;
   SPoint2 _center;
@@ -244,10 +244,12 @@ bool compute4neighbors (GFace *gf,   // the surface
   }
   return true;
 } 
+#endif
 
 // fills a surface with points in order to build a nice
 // quad mesh ------------
 void packingOfParallelograms(GFace* gf, std::vector<MVertex*> &packed){
+  #if defined(HAVE_RTREE)
 
   // get all the boundary vertices
   std::set<MVertex*> bnd_vertices;
@@ -336,6 +338,7 @@ void packingOfParallelograms(GFace* gf, std::vector<MVertex*> &packed){
   fclose(f);
   //  printf("packed.size = %d\n",packed.size());
   //  delete rtree;
+  #endif
 }
 
 
-- 
GitLab