Commit 5c1bdb5c authored by bonnell's avatar bonnell
Browse files

Fix PickyByNode query where it could return worng coordinates for the node

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@24140 18c085ea-50e0-402c-830e-de6fd14e8384
parent 78e077bf
......@@ -54,7 +54,7 @@
#include <avtVector.h>
#include <BadNodeException.h>
#include <float.h>
// ****************************************************************************
......@@ -271,8 +271,18 @@ avtPickByNodeQuery::Execute(vtkDataSet *ds, const int dom)
// transformed space, so ????????
//
double coord[3];
ds->GetPoint(nodeid, coord);
pickAtts.SetCellPoint(coord);
double *p = pickAtts.GetCellPoint();
if (p[0] == FLT_MAX)
{
ds->GetPoint(nodeid, coord);
pickAtts.SetCellPoint(coord);
}
else
{
coord[0] = p[0];
coord[1] = p[1];
coord[2] = p[2];
}
if (transform != NULL)
{
avtVector v1(coord);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment