mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
riTRANSXYZ: Fixed negative values due to bug in polygon calculations
This commit is contained in:
parent
b7bc732b32
commit
5377742bbc
@ -299,7 +299,7 @@ bool GeometryTools::calculateOverlapPolygonOfTwoQuads(std::vector<IndexType> * p
|
|||||||
{
|
{
|
||||||
|
|
||||||
int k;
|
int k;
|
||||||
for (k = 0; k < 4; ++k)
|
for (k = 3; k >= 0; --k) // Return opposite winding, to match winding of face 1
|
||||||
{
|
{
|
||||||
polygon->push_back(cv2CubeFaceIndices[k]);
|
polygon->push_back(cv2CubeFaceIndices[k]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user