From 9b400d32558061edd39267a602c52b710106fb7d Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 11 Sep 2007 07:29:20 +0000 Subject: [PATCH] + // PAL16857(SMESH not conform to the MED convention) -> + // 1D - always along X + // 2D - always in XOY plane + anIsDimPresent[iDim] = iDim < aMeshDimension; --- src/CONVERTOR/VISU_PointCoords.cxx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) 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()){ -- 2.39.2