mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Faults: Face culling handles flipaxis
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user