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

fix g++ error on linux

parent 2151b6a8
Branches
Tags
No related merge requests found
// $Id: BackgroundMesh.cpp,v 1.8 2006-11-30 13:55:20 geuzaine Exp $ // $Id: BackgroundMesh.cpp,v 1.9 2006-11-30 18:06:58 geuzaine Exp $
// //
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
// //
...@@ -96,13 +96,17 @@ double LC_MVertex_CURV ( GEntity *ge, double U, double V ) ...@@ -96,13 +96,17 @@ double LC_MVertex_CURV ( GEntity *ge, double U, double V )
Crv = max_surf_curvature ( (const GVertex *)ge); Crv = max_surf_curvature ( (const GVertex *)ge);
break; break;
case 1: case 1:
GEdge *ged = (GEdge *)ge; {
//Crv = ged->curvature( U ); GEdge *ged = (GEdge *)ge;
Crv = max_surf_curvature ( (const GEdge *)ge, U); //Crv = ged->curvature( U );
Crv = max_surf_curvature ( (const GEdge *)ge, U);
}
break; break;
case 2: case 2:
GFace *gf = (GFace *)ge; {
Crv = gf->curvature( SPoint2( U, V) ); GFace *gf = (GFace *)ge;
Crv = gf->curvature( SPoint2( U, V) );
}
break; break;
} }
...@@ -135,10 +139,10 @@ double LC_MVertex_PNTS ( GEntity *ge, double U, double V ) ...@@ -135,10 +139,10 @@ double LC_MVertex_PNTS ( GEntity *ge, double U, double V )
switch (ge->dim ()) switch (ge->dim ())
{ {
case 0: case 0:
{ {
GVertex *gv = (GVertex *)ge; GVertex *gv = (GVertex *)ge;
return gv->prescribedMeshSizeAtVertex(); return gv->prescribedMeshSizeAtVertex();
} }
case 1: case 1:
{ {
GEdge *ged = (GEdge *)ge; GEdge *ged = (GEdge *)ge;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment