~ubuntu-branches/debian/squeeze/gmsh/squeeze

« back to all changes in this revision

Viewing changes to Post/OctreePost.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2009-01-07 16:02:08 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090107160208-vklhtj69br5yw5bh
Tags: 2.2.6.dfsg-2
* debian/control: fixed lintian warning "debhelper-but-no-misc-depends"
* debian/watch: fixed lintian warning
  "debian-watch-file-should-mangle-version"

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#include "PViewDataList.h"
11
11
#include "PViewDataGModel.h"
12
12
#include "Numeric.h"
13
 
#include "Message.h"
 
13
#include "GmshMessage.h"
14
14
#include "shapeFunctions.h"
15
15
#include "GModel.h"
16
16
#include "MElement.h"
222
222
{
223
223
  _theViewDataGModel = dynamic_cast<PViewDataGModel*>(_theView->getData());
224
224
 
225
 
  if(_theViewDataGModel) return; // the octree is available in the model
 
225
  if(_theViewDataGModel) return; // the octree is already available in the model
226
226
 
227
 
  _theViewDataList = dynamic_cast<PViewDataList*>(_theView->getData());
 
227
  // use adaptive data if available
 
228
  _theViewDataList = dynamic_cast<PViewDataList*>(_theView->getData(true));
228
229
 
229
230
  if(_theViewDataList){
230
 
    SBoundingBox3d bb = v->getData()->getBoundingBox();
 
231
    SBoundingBox3d bb = _theViewDataList->getBoundingBox();
231
232
    double min[3] = {bb.min().x(), bb.min().y(), bb.min().z()};
232
233
    double size[3] = {bb.max().x() - bb.min().x(),
233
234
                      bb.max().y() - bb.min().y(),