mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3441 Slight tweaks to casing shoe 3D-look and added Packers.
This commit is contained in:
parent
e7a39fb2f8
commit
f85e1bdb98
@ -166,7 +166,7 @@ void RivWellPathPartMgr::appendFishboneSubsPartsToModel(cvf::ModelBasicList* mod
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivWellPathPartMgr::appendCasingShoesToModel(cvf::ModelBasicList* model,
|
||||
void RivWellPathPartMgr::appendWellPathAttributesToModel(cvf::ModelBasicList* model,
|
||||
const caf::DisplayCoordTransform* displayCoordTransform,
|
||||
double characteristicCellSize)
|
||||
{
|
||||
@ -181,7 +181,7 @@ void RivWellPathPartMgr::appendCasingShoesToModel(cvf::ModelBasicList*
|
||||
{
|
||||
double wellPathRadius = this->wellPathRadius(characteristicCellSize, this->wellPathCollection());
|
||||
double endMD = attribute->endMD();
|
||||
double shoeStartMD = endMD - 2.5;
|
||||
double shoeStartMD = endMD - 5.0;
|
||||
|
||||
std::vector<cvf::Vec3d> displayCoords;
|
||||
displayCoords.push_back(displayCoordTransform->transformToDisplayCoord(m_rimWellPath->wellPathGeometry()->interpolatedPointAlongWellPath(shoeStartMD)));
|
||||
@ -190,7 +190,7 @@ void RivWellPathPartMgr::appendCasingShoesToModel(cvf::ModelBasicList*
|
||||
|
||||
std::vector<double> radii;
|
||||
radii.push_back(wellPathRadius);
|
||||
radii.push_back(wellPathRadius * 2.0);
|
||||
radii.push_back(wellPathRadius * 2.5);
|
||||
radii.push_back(wellPathRadius * 1.1);
|
||||
|
||||
cvf::ref<RivObjectSourceInfo> objectSourceInfo = new RivObjectSourceInfo(attribute);
|
||||
@ -202,8 +202,35 @@ void RivWellPathPartMgr::appendCasingShoesToModel(cvf::ModelBasicList*
|
||||
part->setSourceInfo(objectSourceInfo.p());
|
||||
model->addPart(part.p());
|
||||
}
|
||||
}
|
||||
else if (attribute->componentType() == RiaDefines::PACKER)
|
||||
{
|
||||
double wellPathRadius = this->wellPathRadius(characteristicCellSize, this->wellPathCollection());
|
||||
double startMD = attribute->startMD();
|
||||
double endMD = attribute->startMD() + 3.0;
|
||||
|
||||
}
|
||||
std::vector<cvf::Vec3d> displayCoords;
|
||||
displayCoords.push_back(displayCoordTransform->transformToDisplayCoord(m_rimWellPath->wellPathGeometry()->interpolatedPointAlongWellPath(startMD)));
|
||||
displayCoords.push_back(displayCoordTransform->transformToDisplayCoord(m_rimWellPath->wellPathGeometry()->interpolatedPointAlongWellPath(startMD)));
|
||||
displayCoords.push_back(displayCoordTransform->transformToDisplayCoord(m_rimWellPath->wellPathGeometry()->interpolatedPointAlongWellPath(endMD)));
|
||||
displayCoords.push_back(displayCoordTransform->transformToDisplayCoord(m_rimWellPath->wellPathGeometry()->interpolatedPointAlongWellPath(endMD)));
|
||||
|
||||
std::vector<double> radii;
|
||||
radii.push_back(wellPathRadius);
|
||||
radii.push_back(wellPathRadius * 2.5);
|
||||
radii.push_back(wellPathRadius * 2.5);
|
||||
radii.push_back(wellPathRadius);
|
||||
|
||||
cvf::ref<RivObjectSourceInfo> objectSourceInfo = new RivObjectSourceInfo(attribute);
|
||||
|
||||
cvf::Collection<cvf::Part> parts;
|
||||
geoGenerator.tubeWithCenterLinePartsAndVariableWidth(&parts, displayCoords, radii, attribute->defaultComponentColor());
|
||||
for (auto part : parts)
|
||||
{
|
||||
part->setSourceInfo(objectSourceInfo.p());
|
||||
model->addPart(part.p());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -631,7 +658,7 @@ void RivWellPathPartMgr::appendStaticGeometryPartsToModel(cvf::ModelBasicList*
|
||||
|
||||
appendFishboneSubsPartsToModel(model, displayCoordTransform, characteristicCellSize);
|
||||
appendImportedFishbonesToModel(model, displayCoordTransform, characteristicCellSize);
|
||||
appendCasingShoesToModel(model, displayCoordTransform, characteristicCellSize);
|
||||
appendWellPathAttributesToModel(model, displayCoordTransform, characteristicCellSize);
|
||||
|
||||
RimGridView* gridView = dynamic_cast<RimGridView*>(m_rimView.p());
|
||||
if (!gridView) return;
|
||||
|
@ -89,9 +89,9 @@ private:
|
||||
const caf::DisplayCoordTransform* displayCoordTransform,
|
||||
double characteristicCellSize);
|
||||
|
||||
void appendCasingShoesToModel(cvf::ModelBasicList* model,
|
||||
const caf::DisplayCoordTransform* displayCoordTransform,
|
||||
double characteristicCellSize);
|
||||
void appendWellPathAttributesToModel(cvf::ModelBasicList* model,
|
||||
const caf::DisplayCoordTransform* displayCoordTransform,
|
||||
double characteristicCellSize);
|
||||
|
||||
void appendImportedFishbonesToModel(cvf::ModelBasicList* model,
|
||||
const caf::DisplayCoordTransform* displayCoordTransform,
|
||||
|
Loading…
Reference in New Issue
Block a user