From 34ca08c281b37bfcd974f515685b0f2b8710cb74 Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 10 Oct 2019 20:15:41 +0300 Subject: [PATCH] Fix for #17254 [CEA 17252] Glyphs::Scalars in MEDPresentationVectorField --- src/MEDCalc/cmp/MEDPresentationVectorField.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/MEDCalc/cmp/MEDPresentationVectorField.cxx b/src/MEDCalc/cmp/MEDPresentationVectorField.cxx index 23c81b985..5b77625de 100644 --- a/src/MEDCalc/cmp/MEDPresentationVectorField.cxx +++ b/src/MEDCalc/cmp/MEDPresentationVectorField.cxx @@ -81,14 +81,15 @@ MEDPresentationVectorField::internalGeneratePipeline() showObject(); // to be done first so that the scale factor computation properly works - oss << _objVar << ".Scalars = ['"<< _pvFieldType << "', 'None'];"; + std::string fieldName = nbCompo <= 2 ? _fieldName + "_Vector" : _fieldName; + + oss << _objVar << ".ScaleArray = ['"<< _pvFieldType << "', '" << fieldName << "'];"; pushAndExecPyLine(oss.str()); oss.str(""); - std::string fieldName = nbCompo <= 2 ? _fieldName + "_Vector" : _fieldName; - oss << _objVar << ".Vectors = ['"<< _pvFieldType << "', '" << fieldName << "'];"; + oss << _objVar << ".OrientationArray = ['"<< _pvFieldType << "', '" << fieldName << "'];"; pushAndExecPyLine(oss.str()); oss.str(""); - oss << _objVar << ".ScaleMode = 'vector';"; + oss << _objVar << ".VectorScaleMode = 'Scale by Magnitude';"; pushAndExecPyLine(oss.str()); oss.str(""); oss << _objVar << ".GlyphMode = 'All Points';"; pushAndExecPyLine(oss.str()); oss.str(""); -- 2.39.2