#12367 VTK surface import: handle NaN in vtu file.

This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2025-04-23 17:27:23 +02:00
1 parent 43cc4d5d95
commit 3081a02b90
3 files changed
+32 -4

No files matched your search

@@ -42,6 +42,13 @@ TEST( RifVtkSurfaceImporterTest, ImportFromFile )
[expectedProperty]( const QString& name ) { return name == expectedProperty; } ) );
EXPECT_EQ( triangleMeshData->propertyValues( expectedProperty ).size(), expectedVertexCount );
}
// Check that we handled NaN values
auto values = triangleMeshData->propertyValues( "ReservoirPerm" );
for ( size_t i = 24; i < 30; i++ )
{
ASSERT_TRUE( std::isnan( triangleMeshData->propertyValues( "ReservoirPerm" )[i] ) );
}
}
// Test parsing a PVD file