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

@@ -356,3 +356,12 @@ void RigMainGrid::calculateFaults()
}
}
}
//--------------------------------------------------------------------------------------------------
/// The cell is normally inverted due to Depth becoming -Z at import,
/// but if (only) one of the flipX/Y is done, the cell is back to nomal
//--------------------------------------------------------------------------------------------------
bool RigMainGrid::faceNormalsIsOutwards() const
{
return m_flipXAxis ^ m_flipYAxis;
}

View File

@@ -51,6 +51,7 @@ public:
void setFaults(const cvf::Collection<RigFault>& faults);
const cvf::Collection<RigFault>& faults() { return m_faults; }
void calculateFaults();
bool faceNormalsIsOutwards() const;
void computeCachedData();