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:
Magne Sjaastad 2020-09-16 08:01:28 +02:00 committed by GitHub
parent 53f8364889
commit 3925d31795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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} );