]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
[MEDCalc] Colorize contours V8_2_0b1
authorCédric Aguerre <cedric.aguerre@edf.fr>
Thu, 10 Nov 2016 09:13:55 +0000 (10:13 +0100)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Thu, 10 Nov 2016 09:28:22 +0000 (10:28 +0100)
src/MEDCalc/cmp/MEDPresentationContour.cxx

index 5a25cef588e767135542626893aba67c3184e48d..35a4264902df0a031f6aac7f06bc36c916796e57 100644 (file)
@@ -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();