Added code to output cell corner coordinates when picking. Disabled by default.

p4#: 20305
This commit is contained in:
Jacob Støren
2013-01-30 14:51:31 +01:00
parent ce95f13c10
commit 32b5af2033

View File

@@ -282,6 +282,20 @@ void RIViewer::handlePickAction(int winPosX, int winPosY)
{
m_reservoirView->appendCellResultInfo(gridIndex, cellIndex, &resultInfo);
}
#if 0
const RigReservoir* reservoir = m_reservoirView->eclipseCase()->reservoirData();
const RigGridBase* grid = reservoir->grid(gridIndex);
const RigCell& cell = grid->cell(cellIndex);
const caf::SizeTArray8& cellNodeIndices = cell.cornerIndices();
const std::vector<cvf::Vec3d>& nodes = reservoir->mainGrid()->nodes();
for (int i = 0; i < 8; ++i)
{
resultInfo += QString::number(i) + " : ";
for (int j = 0; j < 3; ++j)
resultInfo += QString::number(nodes[cellNodeIndices[i]][j], 'g', 10) + " ";
resultInfo += "\n";
}
#endif
}
}
}