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
No related branches found
No related tags found
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
//
......@@ -96,13 +96,17 @@ double LC_MVertex_CURV ( GEntity *ge, double U, double V )
Crv = max_surf_curvature ( (const GVertex *)ge);
break;
case 1:
GEdge *ged = (GEdge *)ge;
//Crv = ged->curvature( U );
Crv = max_surf_curvature ( (const GEdge *)ge, U);
{
GEdge *ged = (GEdge *)ge;
//Crv = ged->curvature( U );
Crv = max_surf_curvature ( (const GEdge *)ge, U);
}
break;
case 2:
GFace *gf = (GFace *)ge;
Crv = gf->curvature( SPoint2( U, V) );
{
GFace *gf = (GFace *)ge;
Crv = gf->curvature( SPoint2( U, V) );
}
break;
}
......@@ -135,10 +139,10 @@ double LC_MVertex_PNTS ( GEntity *ge, double U, double V )
switch (ge->dim ())
{
case 0:
{
GVertex *gv = (GVertex *)ge;
return gv->prescribedMeshSizeAtVertex();
}
{
GVertex *gv = (GVertex *)ge;
return gv->prescribedMeshSizeAtVertex();
}
case 1:
{
GEdge *ged = (GEdge *)ge;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment