From: eap Date: Tue, 11 Sep 2007 07:16:56 +0000 (+0000) Subject: + // PAL16857(SMESH not conform to the MED convention) -> X-Git-Tag: T_24092007~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=747fd79afeb1ab6c0b18c18f2d7304a99ec9a9cd;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_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index cbf89c25..d9a24216 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -1175,15 +1175,19 @@ namespace int aMeshDimension = theMesh->myDim; bool anIsDimPresent[3] = {false, false, false}; for(int iDim = 0; iDim < aMeshDimension; iDim++){ - std::string aName = aCoords.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 < aMeshDimension; +// std::string aName = aCoords.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(aMeshDimension){