mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
Spelling: vertice -> vertex.
This commit is contained in:
1 parent
128fef8493
commit
76dc3c4c24
5 files changed
+15
-15
No files matched your search
@@ -60,9 +60,9 @@ void RigSurface::setTriangleData( const std::vector<unsigned>& tringleIndices, c
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigSurface::addVerticeResult( const QString resultName, const std::vector<float>& resultValues )
|
||||
void RigSurface::addVertexResult( const QString resultName, const std::vector<float>& resultValues )
|
||||
{
|
||||
m_verticeResults[resultName] = resultValues;
|
||||
m_vertexResults[resultName] = resultValues;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -70,8 +70,8 @@ void RigSurface::addVerticeResult( const QString resultName, const std::vector<f
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<float> RigSurface::propertyValues( const QString& propertyName ) const
|
||||
{
|
||||
auto it = m_verticeResults.find( propertyName );
|
||||
if ( it != m_verticeResults.end() )
|
||||
auto it = m_vertexResults.find( propertyName );
|
||||
if ( it != m_vertexResults.end() )
|
||||
{
|
||||
return it->second;
|
||||
}
|
||||
@@ -86,7 +86,7 @@ std::vector<QString> RigSurface::propertyNames() const
|
||||
{
|
||||
std::vector<QString> names;
|
||||
|
||||
for ( const auto& propertyResult : m_verticeResults )
|
||||
for ( const auto& propertyResult : m_vertexResults )
|
||||
{
|
||||
names.push_back( propertyResult.first );
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
const std::vector<cvf::Vec3d>& vertices() const;
|
||||
|
||||
void setTriangleData( const std::vector<unsigned>& tringleIndices, const std::vector<cvf::Vec3d>& vertices );
|
||||
void addVerticeResult( const QString resultName, const std::vector<float>& resultValues );
|
||||
void addVertexResult( const QString resultName, const std::vector<float>& resultValues );
|
||||
|
||||
std::vector<float> propertyValues( const QString& propertyName ) const;
|
||||
std::vector<QString> propertyNames() const;
|
||||
@@ -58,7 +58,7 @@ private:
|
||||
private:
|
||||
std::vector<unsigned> m_triangleIndices;
|
||||
std::vector<cvf::Vec3d> m_vertices;
|
||||
std::map<QString, std::vector<float>> m_verticeResults;
|
||||
std::map<QString, std::vector<float>> m_vertexResults;
|
||||
|
||||
cvf::ref<cvf::BoundingBoxTree> m_surfaceBoundingBoxTree;
|
||||
|
||||
|
||||
@@ -104,12 +104,12 @@ cvf::ref<RigSurface> RigSurfaceStatisticsCalculator::computeStatistics( const st
|
||||
|
||||
auto enumToText = []( auto statisticsType ) { return caf::AppEnum<StatisticsType>::text( statisticsType ); };
|
||||
|
||||
statSurface->addVerticeResult( enumToText( StatisticsType::MEAN ), meanValues );
|
||||
statSurface->addVerticeResult( enumToText( StatisticsType::MIN ), minValues );
|
||||
statSurface->addVerticeResult( enumToText( StatisticsType::MAX ), maxValues );
|
||||
statSurface->addVerticeResult( enumToText( StatisticsType::P10 ), p10Values );
|
||||
statSurface->addVerticeResult( enumToText( StatisticsType::P50 ), p50Values );
|
||||
statSurface->addVerticeResult( enumToText( StatisticsType::P90 ), p90Values );
|
||||
statSurface->addVertexResult( enumToText( StatisticsType::MEAN ), meanValues );
|
||||
statSurface->addVertexResult( enumToText( StatisticsType::MIN ), minValues );
|
||||
statSurface->addVertexResult( enumToText( StatisticsType::MAX ), maxValues );
|
||||
statSurface->addVertexResult( enumToText( StatisticsType::P10 ), p10Values );
|
||||
statSurface->addVertexResult( enumToText( StatisticsType::P50 ), p50Values );
|
||||
statSurface->addVertexResult( enumToText( StatisticsType::P90 ), p90Values );
|
||||
|
||||
return statSurface;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user