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

allow unconstrained background meshes
parent d86060f0
No related branches found
No related tags found
No related merge requests found
// $Id: BackgroundMesh.cpp,v 1.5 2006-11-29 20:31:29 jacob Exp $
// $Id: BackgroundMesh.cpp,v 1.6 2006-11-29 23:26:51 geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
......@@ -155,6 +155,11 @@ double LC_MVertex_PNTS ( GEntity *ge, double U, double V )
double BGM_MeshSize ( GEntity *ge, double U, double V , double X, double Y, double Z)
{
if(CTX.mesh.bgmesh_type == ONFILE && !CTX.mesh.constrained_bgmesh){
// unconstrained background mesh
return BGMXYZ(X,Y,Z) * CTX.mesh.lc_factor;
}
else{
double l1 = 1.e22;
double l2 = 1.e22;
// if (ge->dim() < 3) l1 = LC_MVertex_CURV ( ge, U, V );
......@@ -163,11 +168,9 @@ double BGM_MeshSize ( GEntity *ge, double U, double V , double X, double Y, doub
double l = std::min(std::min(l1,l2),l3);
double l4 = LC_MVertex_BGM ( ge, X, Y , Z );
l = std::min(l,l4);
// printf("l = %12.5E\n",l);
return l * CTX.mesh.lc_factor ;
}
}
int BGMWithView(Post_View * ErrView)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment