mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix sign of z for openworksxyz surface import (#6506)
* #6503 Color Dialog : Use Qt color dialog, not native color dialog * Use native only on Linux * #6485 Surface : Invert z-value for XYZ import
This commit is contained in:
parent
53f8364889
commit
3925d31795
@ -436,6 +436,9 @@ std::pair<std::vector<cvf::Vec3d>, std::vector<unsigned>>
|
||||
if ( lineStream.good() ) values.push_back( d );
|
||||
}
|
||||
|
||||
// Z should be given in negative values, switch sign if positive
|
||||
if ( z > 0.0 ) z = -z;
|
||||
|
||||
// Add point
|
||||
surfacePoints.push_back( {x, y, z} );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user