From: Cédric Aguerre Date: Thu, 10 Nov 2016 09:13:55 +0000 (+0100) Subject: [MEDCalc] Colorize contours X-Git-Tag: V8_2_0b1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f216d42e9a7b1add30c4efabbda2ddf6da9c1d6;p=modules%2Fmed.git [MEDCalc] Colorize contours --- diff --git a/src/MEDCalc/cmp/MEDPresentationContour.cxx b/src/MEDCalc/cmp/MEDPresentationContour.cxx index 5a25cef58..35a426490 100644 --- a/src/MEDCalc/cmp/MEDPresentationContour.cxx +++ b/src/MEDCalc/cmp/MEDPresentationContour.cxx @@ -94,6 +94,10 @@ MEDPresentationContour::internalGeneratePipeline() oss << _objVar << ".ContourBy = ['POINTS', '" << _fieldName << "'];"; pushAndExecPyLine(oss.str()); oss.str(""); + // Colorize contour + oss << _objVar << ".ComputeScalars = 1;"; + pushAndExecPyLine(oss.str()); oss.str(""); + // Set number of contours setNumberContours();