#13841 Python: Add get_property API for regular surfaces

This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2026-04-09 07:59:34 +02:00
1 parent e8223485b1
commit 68b193cd56
8 files changed
+118 -1

No files matched your search

@@ -405,6 +405,16 @@ void RimRegularSurface::setPropertyAsDepth( const QString& key )
m_depthProperty = key;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<float> RimRegularSurface::getProperty( const QString& key ) const
{
auto it = m_properties.find( key );
if ( it != m_properties.end() ) return it->second;
return {};
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -42,6 +42,8 @@ public:
void setProperty( const QString& key, const std::vector<float>& values );
void setPropertyAsDepth( const QString& key );
std::vector<float> getProperty( const QString& key ) const;
int nx() const;
int ny() const;
double originX() const;