mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1274 - pre-proto - Showing lines between nodes instead of though nodes (different interpretation of what the grid is...)
This commit is contained in:
@@ -283,8 +283,14 @@ void RivWellFracturePartMgr::generateStimPlanMeshPart(caf::DisplayCoordTransform
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
cvf::ref<cvf::DrawableGeo> RivWellFracturePartMgr::createStimPlanMeshDrawable(RimStimPlanFractureTemplate* stimPlanFracTemplate, caf::DisplayCoordTransform* displayCoordTransform)
|
cvf::ref<cvf::DrawableGeo> RivWellFracturePartMgr::createStimPlanMeshDrawable(RimStimPlanFractureTemplate* stimPlanFracTemplate, caf::DisplayCoordTransform* displayCoordTransform)
|
||||||
{
|
{
|
||||||
std::vector<double> depthCoords = stimPlanFracTemplate->adjustedDepthCoordsAroundWellPathPosition();
|
std::vector<double> depthCoordsAtNodes = stimPlanFracTemplate->adjustedDepthCoordsAroundWellPathPosition();
|
||||||
std::vector<double> xCoords = stimPlanFracTemplate->getNegAndPosXcoords();
|
std::vector<double> xCoordsAtNodes = stimPlanFracTemplate->getNegAndPosXcoords();
|
||||||
|
|
||||||
|
//To show lines in between nodes instead of between nodes
|
||||||
|
std::vector<double> xCoords;
|
||||||
|
for (int i = 0; i < xCoordsAtNodes.size() -1; i++) xCoords.push_back((xCoordsAtNodes[i] + xCoordsAtNodes[i + 1]) / 1);
|
||||||
|
std::vector<double> depthCoords;
|
||||||
|
for (int i = 0; i < depthCoordsAtNodes.size() - 1; i++) depthCoords.push_back((depthCoordsAtNodes[i] + depthCoordsAtNodes[i + 1]) / 1);
|
||||||
|
|
||||||
std::vector<cvf::Vec3f> stimPlanMeshVertices;
|
std::vector<cvf::Vec3f> stimPlanMeshVertices;
|
||||||
for (int i = 0; i < xCoords.size() - 1; i++)
|
for (int i = 0; i < xCoords.size() - 1; i++)
|
||||||
@@ -316,7 +322,6 @@ cvf::ref<cvf::DrawableGeo> RivWellFracturePartMgr::createStimPlanMeshDrawable(Ri
|
|||||||
|
|
||||||
stimPlanMeshGeo->addPrimitiveSet(prim.p());
|
stimPlanMeshGeo->addPrimitiveSet(prim.p());
|
||||||
|
|
||||||
|
|
||||||
return stimPlanMeshGeo;
|
return stimPlanMeshGeo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user