From: eap Date: Tue, 11 Sep 2007 07:29:20 +0000 (+0000) Subject: + // PAL16857(SMESH not conform to the MED convention) -> X-Git-Tag: Start_MERGE_MULTIPR_EVOLUTION~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9b400d32558061edd39267a602c52b710106fb7d;p=modules%2Fvisu.git + // PAL16857(SMESH not conform to the MED convention) -> + // 1D - always along X + // 2D - always in XOY plane + anIsDimPresent[iDim] = iDim < aMeshDimension; --- diff --git a/src/CONVERTOR/VISU_PointCoords.cxx b/src/CONVERTOR/VISU_PointCoords.cxx index ac1e3dbb..6d2e9209 100644 --- a/src/CONVERTOR/VISU_PointCoords.cxx +++ b/src/CONVERTOR/VISU_PointCoords.cxx @@ -320,15 +320,19 @@ namespace VISU TCoordHelperPtr aCoordHelperPtr; bool anIsDimPresent[3] = {false, false, false}; for(int iDim = 0; iDim < GetDim(); iDim++){ - std::string aName = GetName(iDim); - if ( aName.size() > 1 ) // PAL13021 (PAL12148), aName has size 8 or 16 - aName = aName.substr(0,1); - if(aName == "x" || aName == "X") - anIsDimPresent[eX] = true; - else if(aName == "y" || aName == "Y") - anIsDimPresent[eY] = true; - else if(aName == "z" || aName == "Z") - anIsDimPresent[eZ] = true; + // PAL16857(SMESH not conform to the MED convention) -> + // 1D - always along X + // 2D - always in XOY plane + anIsDimPresent[iDim] = iDim < GetDim(); +// std::string aName = GetName(iDim); +// if ( aName.size() > 1 ) // PAL13021 (PAL12148), aName has size 8 or 16 +// aName = aName.substr(0,1); +// if(aName == "x" || aName == "X") +// anIsDimPresent[eX] = true; +// else if(aName == "y" || aName == "Y") +// anIsDimPresent[eY] = true; +// else if(aName == "z" || aName == "Z") +// anIsDimPresent[eZ] = true; } switch(GetDim()){