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

increase size of bbox for 2d algo (cf example)
parent 840475d1
No related branches found
No related tags found
No related merge requests found
// $Id: meshGFace.cpp,v 1.73 2007-04-16 09:08:28 remacle Exp $
// $Id: meshGFace.cpp,v 1.74 2007-04-21 22:08:30 geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
......@@ -725,8 +725,9 @@ bool gmsh2DMeshGenerator ( GFace *gf , bool debug = true)
}
/// Increase the size of the bounding box by 20 %
bbox *= 1.5;
/// Increase the size of the bounding box
bbox *= 2.5;
/// add 4 points than encloses the domain
/// Use negative number to distinguish thos fake vertices
MVertex *bb[4];
......
// this is a simple example for which computing a bounding box with
// bbox*=1.5 fails...
Point (1) = {0, 0, 0, 1};
Point (2) = {0.1, 0.1, 0, 1};
Point (3) = {0.1, 0.2, 0, 1};
Line (1) = {1, 2};
Line (2) = {2, 3};
Line (3) = {3, 1};
Line Loop(1) = {1, 2, 3};
Plane Surface(1) = {1};
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