mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
VTK: Negate z-component of displacements to match internal convention
This commit is contained in:
@@ -58,8 +58,13 @@ std::vector<cvf::Vec3f> RifVtkImportUtil::readDisplacements( const pugi::xml_nod
|
||||
auto dataArray = pointData.child( "DataArray" );
|
||||
if ( !dataArray || std::string( dataArray.attribute( "Name" ).value() ) != "disp" ) return {};
|
||||
|
||||
std::string_view text = dataArray.text().get();
|
||||
return parseVec3fs( text );
|
||||
std::string_view text = dataArray.text().get();
|
||||
std::vector<cvf::Vec3f> displacements = parseVec3fs( text );
|
||||
|
||||
for ( cvf::Vec3f& d : displacements )
|
||||
d.z() = -d.z();
|
||||
|
||||
return displacements;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user