mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
Thermal Fracture: Fix occasional mesh flipping.
This commit is contained in:
1 parent
345095185e
commit
8386166d17
1 file changed
+1
-1
@@ -513,7 +513,7 @@ std::vector<cvf::Vec3d>
|
||||
cvf::Vec3d direction = e1 - e2;
|
||||
cvf::Vec3d directionNormal = direction.getNormalized();
|
||||
// Make sure normal is pointing down
|
||||
if ( directionNormal.y() > 0.0 ) directionNormal *= -1.0;
|
||||
if ( e1.x() < e2.x() ) directionNormal *= -1.0;
|
||||
|
||||
auto rotMat2 = cvf::GeometryTools::rotationMatrixBetweenVectors( directionNormal, cvf::Vec3d::X_AXIS );
|
||||
for ( auto& r : relativePos )
|
||||
|
||||
Reference in new issue
Block a user