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

fix for element-based views

parent 86cbc90e
Branches
Tags
No related merge requests found
// $Id: OctreePost.cpp,v 1.9 2008-03-29 21:36:30 geuzaine Exp $ // $Id: OctreePost.cpp,v 1.10 2008-03-30 15:37:42 geuzaine Exp $
// //
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
// //
...@@ -420,8 +420,12 @@ bool OctreePost::_getValue(void *in, int nbComp, double P[3], int timestep, doub ...@@ -420,8 +420,12 @@ bool OctreePost::_getValue(void *in, int nbComp, double P[3], int timestep, doub
MElement *e = (MElement*)in; MElement *e = (MElement*)in;
int dataIndex[8]; int dataIndex[8];
if(_theViewDataGModel->getType() == PViewDataGModel::NodeData)
for(int i = 0; i < e->getNumVertices(); i++) for(int i = 0; i < e->getNumVertices(); i++)
dataIndex[i] = e->getVertex(i)->getNum(); dataIndex[i] = e->getVertex(i)->getNum();
else
for(int i = 0; i < e->getNumVertices(); i++)
dataIndex[i] = e->getNum();
double U[3]; double U[3];
e->xyz2uvw(P, U); e->xyz2uvw(P, U);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment