mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Thermal Fracture: Fix occasional mesh flipping.
This commit is contained in:
parent
345095185e
commit
8386166d17
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user