Skip to content
Snippets Groups Projects
Commit de3e4201 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix compile

parent 1f15c4bd
No related branches found
No related tags found
No related merge requests found
...@@ -600,8 +600,8 @@ static void updateFaceQuads(GFace *gf, std::vector<MQuadrangle*> &quads, std::ve ...@@ -600,8 +600,8 @@ static void updateFaceQuads(GFace *gf, std::vector<MQuadrangle*> &quads, std::ve
static bool computeRingVertices(GFace *gf, Centerline *center, static bool computeRingVertices(GFace *gf, Centerline *center,
std::vector<MVertex*> &vert1, std::vector<MVertex*> &vert2, std::vector<MVertex*> &vert1, std::vector<MVertex*> &vert2,
int &N, int &M, int &close_ind, int &sign2, int &N, int &M, int &close_ind, int &sign2,
double &arc, double &length){ double &arc, double &length)
{
#if defined(HAVE_ANN) #if defined(HAVE_ANN)
std::list<GEdge*> bedges = gf->edges(); std::list<GEdge*> bedges = gf->edges();
std::list<GEdge*>::iterator itb = bedges.begin(); std::list<GEdge*>::iterator itb = bedges.begin();
...@@ -690,8 +690,9 @@ static bool computeRingVertices(GFace *gf, Centerline *center, ...@@ -690,8 +690,9 @@ static bool computeRingVertices(GFace *gf, Centerline *center,
annDeallocPts(nodes); annDeallocPts(nodes);
return true; return true;
#else
return false;
#endif #endif
} }
//vert1 is the outer circle //vert1 is the outer circle
...@@ -705,7 +706,6 @@ static bool computeRingVertices(GFace *gf, Centerline *center, ...@@ -705,7 +706,6 @@ static bool computeRingVertices(GFace *gf, Centerline *center,
// - - - - // - - - -
bool createRegularTwoCircleGridPeriodic (Centerline *center, GFace *gf) bool createRegularTwoCircleGridPeriodic (Centerline *center, GFace *gf)
{ {
#if defined(HAVE_ANN) #if defined(HAVE_ANN)
std::vector<MVertex*> vert1, vert2; std::vector<MVertex*> vert1, vert2;
int N, M, close_ind, sign2; int N, M, close_ind, sign2;
...@@ -756,11 +756,9 @@ bool createRegularTwoCircleGridPeriodic (Centerline *center, GFace *gf) ...@@ -756,11 +756,9 @@ bool createRegularTwoCircleGridPeriodic (Centerline *center, GFace *gf)
//printParamGrid(gf, vert1, vert2, e00,e22,e02,e02,e02,e02, quads); //printParamGrid(gf, vert1, vert2, e00,e22,e02,e02,e02,e02, quads);
return true; return true;
#else #else
return false; return false;
#endif #endif
} }
//vert1 is the outer circle //vert1 is the outer circle
...@@ -860,11 +858,7 @@ bool createRegularTwoCircleGrid (Centerline *center, GFace *gf) ...@@ -860,11 +858,7 @@ bool createRegularTwoCircleGrid (Centerline *center, GFace *gf)
printParamGrid(gf, vert1, vert2, e01,e10,e23,e32,e02,e13, quads); printParamGrid(gf, vert1, vert2, e01,e10,e23,e32,e02,e13, quads);
return true; return true;
#else #else
return false; return false;
#endif #endif
} }
...@@ -48,6 +48,7 @@ static const double DIRS [NUMDIR] = {0.0, M_PI/20.,-M_PI/20.}; ...@@ -48,6 +48,7 @@ static const double DIRS [NUMDIR] = {0.0, M_PI/20.,-M_PI/20.};
/// right spacing in the tangent plane /// right spacing in the tangent plane
#if defined(HAVE_RTREE) #if defined(HAVE_RTREE)
struct surfacePointWithExclusionRegion { struct surfacePointWithExclusionRegion {
MVertex *_v; MVertex *_v;
SPoint2 _center; SPoint2 _center;
...@@ -418,8 +419,6 @@ bool compute4neighbors (GFace *gf, // the surface ...@@ -418,8 +419,6 @@ bool compute4neighbors (GFace *gf, // the surface
} }
return true; return true;
} }
#endif
// --------------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------------
...@@ -690,6 +689,8 @@ bool get_local_sizes_and_directions(const MVertex *v_center, const SPoint2 &midp ...@@ -690,6 +689,8 @@ bool get_local_sizes_and_directions(const MVertex *v_center, const SPoint2 &midp
return true; return true;
} }
#endif
// --------------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------------
// using fifo based on smoothness criteria // using fifo based on smoothness criteria
...@@ -1036,7 +1037,4 @@ void packingOfParallelograms(GFace* gf, std::vector<MVertex*> &packed, std::vec ...@@ -1036,7 +1037,4 @@ void packingOfParallelograms(GFace* gf, std::vector<MVertex*> &packed, std::vec
// printf("packed.size = %d\n",packed.size()); // printf("packed.size = %d\n",packed.size());
// delete rtree; // delete rtree;
#endif #endif
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment