Faults: Face culling handles flipaxis

This commit is contained in:
Jacob Støren
2013-12-19 08:48:36 +01:00
parent a20e08237b
commit b7f305b142
5 changed files with 48 additions and 27 deletions

View File

@@ -150,7 +150,7 @@ bool transferGridCellData(RigMainGrid* mainGrid, RigActiveCellInfo* activeCellIn
{
double * point = mainGrid->nodes()[nodeStartIndex + localCellIdx * 8 + cellMappingECLRi[cIdx]].ptr();
ecl_grid_get_corner_xyz1(localEclGrid, localCellIdx, cIdx, &(point[0]), &(point[1]), &(point[2]));
point[2] = -point[2];
point[2] = -point[2]; // Flipping Z making depth become negative z values
cell.cornerIndices()[cIdx] = nodeStartIndex + localCellIdx*8 + cIdx;
}