~ubuntu-branches/ubuntu/intrepid/gmsh/intrepid

« back to all changes in this revision

Viewing changes to Mesh/meshGRegion.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Andrea Veri
  • Date: 2007-07-14 23:29:56 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070714232956-ikw2f28278kxkquw
Tags: 2.0.8-1ubuntu1
* Merge from debian unstable, remaining changes:
  debian/rules:
    - added dh_desktop for registering gmsh.desktop file.
  debian/gmsh.install:
    - Installing both gmsh.desktop and respective icon.
  debian/menu:
    - added gmsh icon path
  debian/control:
    - Modify Maintainer value to match Debian-Maintainer-Field Spec.

* removing 02_gcc4.3-FTBFS.dpatch previously added in ubuntu, it has been reported 
  and fixed upstream with the new usptream release (2.0.8).
  Check debian bug #417211 for confirmation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: meshGRegion.cpp,v 1.29 2007/03/11 20:18:58 geuzaine Exp $
 
1
// $Id: meshGRegion.cpp,v 1.31 2007-05-24 17:34:04 geuzaine Exp $
2
2
//
3
3
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
4
4
//
191
191
  Msg(GERROR, "Tetgen is not compiled in this version of Gmsh");
192
192
#else
193
193
 
 
194
  for(unsigned int i = 0; i < regions.size(); i++)
 
195
    Msg(STATUS2, "Meshing volume %d (Delaunay)", regions[i]->tag());
 
196
 
194
197
  // put all the faces in the same model
195
198
  GRegion *gr = regions[0];
196
199
  std::list<GFace*> faces = gr->faces();
494
497
 
495
498
  if(ep && ep->mesh.ExtrudeMesh) return;
496
499
 
497
 
  // Send a messsage to the GMSH environment
498
 
  Msg(STATUS2, "Meshing volume %d", gr->tag());
499
 
 
500
500
  // destroy the mesh if it exists
501
501
  deMeshGRegion dem;
502
502
  dem(gr);
516
516
    }
517
517
  }
518
518
 
519
 
  if(CTX.mesh.algo3d == ALGO_3D_DELAUNAY || CTX.mesh.algo3d == ALGO_3D_TETGEN){
 
519
  if(CTX.mesh.algo3d == ALGO_3D_TETGEN_DELAUNAY){
520
520
    delaunay.push_back(gr);
521
521
  }
522
522
  else if(CTX.mesh.algo3d == ALGO_3D_NETGEN ){
523
523
#if !defined(HAVE_NETGEN)
524
524
    Msg(GERROR, "Netgen is not compiled in this version of Gmsh");
525
525
#else
 
526
    Msg(STATUS2, "Meshing volume %d (Netgen)", gr->tag());
526
527
    // orient the triangles of with respect to this region
527
528
    meshNormalsPointOutOfTheRegion(gr);
528
529
    std::vector<MVertex*> numberedV;