mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Rename
This commit is contained in:
@@ -93,7 +93,7 @@ void RivWellConnectionFactorPartMgr::appendDynamicGeometryPartsToModel(cvf::Mode
|
|||||||
|
|
||||||
std::vector<size_t> mapFromConnectionIndexToGlobalCellIndex;
|
std::vector<size_t> mapFromConnectionIndexToGlobalCellIndex;
|
||||||
|
|
||||||
std::vector<CompletionVizData> centerColorPairs;
|
std::vector<CompletionVizData> completionVizDataItems;
|
||||||
for (const auto& cell : conn)
|
for (const auto& cell : conn)
|
||||||
{
|
{
|
||||||
size_t gridIndex = cell.first.globalCellIndex();
|
size_t gridIndex = cell.first.globalCellIndex();
|
||||||
@@ -135,16 +135,16 @@ void RivWellConnectionFactorPartMgr::appendDynamicGeometryPartsToModel(cvf::Mode
|
|||||||
transmissibility = cell.second.front().transmissibility();
|
transmissibility = cell.second.front().transmissibility();
|
||||||
}
|
}
|
||||||
|
|
||||||
centerColorPairs.push_back(
|
completionVizDataItems.push_back(
|
||||||
CompletionVizData(displayCoord, wellPathDirection, transmissibility, cell.first.globalCellIndex()));
|
CompletionVizData(displayCoord, wellPathDirection, transmissibility, cell.first.globalCellIndex()));
|
||||||
mapFromConnectionIndexToGlobalCellIndex.push_back(cell.first.globalCellIndex());
|
mapFromConnectionIndexToGlobalCellIndex.push_back(cell.first.globalCellIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!centerColorPairs.empty())
|
if (!completionVizDataItems.empty())
|
||||||
{
|
{
|
||||||
double radius = mainGrid->characteristicIJCellSize() * m_virtualPerforationResult->geometryScaleFactor();
|
double radius = mainGrid->characteristicIJCellSize() * m_virtualPerforationResult->geometryScaleFactor();
|
||||||
|
|
||||||
m_geometryGenerator = new RivWellConnectionFactorGeometryGenerator(centerColorPairs, radius);
|
m_geometryGenerator = new RivWellConnectionFactorGeometryGenerator(completionVizDataItems, radius);
|
||||||
auto drawable = m_geometryGenerator->createSurfaceGeometry();
|
auto drawable = m_geometryGenerator->createSurfaceGeometry();
|
||||||
|
|
||||||
cvf::ref<cvf::Part> part = new cvf::Part;
|
cvf::ref<cvf::Part> part = new cvf::Part;
|
||||||
@@ -156,11 +156,11 @@ void RivWellConnectionFactorPartMgr::appendDynamicGeometryPartsToModel(cvf::Mode
|
|||||||
cvf::ref<cvf::Vec2fArray> textureCoords = new cvf::Vec2fArray();
|
cvf::ref<cvf::Vec2fArray> textureCoords = new cvf::Vec2fArray();
|
||||||
{
|
{
|
||||||
textureCoords->reserve(drawable->vertexArray()->size());
|
textureCoords->reserve(drawable->vertexArray()->size());
|
||||||
size_t verticesPerItem = drawable->vertexArray()->size() / centerColorPairs.size();
|
size_t verticesPerItem = drawable->vertexArray()->size() / completionVizDataItems.size();
|
||||||
|
|
||||||
textureCoords->setAll(cvf::Vec2f(0.5f, 1.0f));
|
textureCoords->setAll(cvf::Vec2f(0.5f, 1.0f));
|
||||||
|
|
||||||
for (const auto& item : centerColorPairs)
|
for (const auto& item : completionVizDataItems)
|
||||||
{
|
{
|
||||||
cvf::Vec2f textureCoord = cvf::Vec2f(0.5f, 1.0f);
|
cvf::Vec2f textureCoord = cvf::Vec2f(0.5f, 1.0f);
|
||||||
if (item.m_connectionFactor != HUGE_VAL)
|
if (item.m_connectionFactor != HUGE_VAL)
|
||||||
|
|||||||
Reference in New Issue
Block a user