#1544 Fracture Perforation Length : Set color to deep green

This commit is contained in:
Magne Sjaastad 2018-01-22 13:00:11 +01:00
parent 348b492cc1
commit 759d46813d
3 changed files with 14 additions and 1 deletions

View File

@ -459,3 +459,15 @@ cvf::Color3f RiaColorTables::undefinedCellColor()
{
return cvf::Color3::GRAY;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
cvf::Color3f RiaColorTables::perforationLengthColor()
{
// based on hwb ( 85, 9%, 67%) dark_olive_green
// added 10 to each component
cvf::Color3ub color(69, 94, 33);
return cvf::Color3f(color);
}

View File

@ -52,4 +52,5 @@ public:
static const caf::ColorTable& timestepsPaletteColors();
static cvf::Color3f undefinedCellColor();
static cvf::Color3f perforationLengthColor();
};

View File

@ -745,7 +745,7 @@ void RivWellFracturePartMgr::appendFracturePerforationLengthParts(const RimEclip
cvf::Collection<cvf::Part> parts;
RivPipeGeometryGenerator geoGenerator;
geoGenerator.cylinderWithCenterLineParts(&parts, displayCoords, cvf::Color3f::ORANGE, perforationRadius);
geoGenerator.cylinderWithCenterLineParts(&parts, displayCoords, RiaColorTables::perforationLengthColor(), perforationRadius);
for (auto part : parts)
{