From: eap Date: Tue, 4 Jun 2013 15:03:15 +0000 (+0000) Subject: 0022103: EDF 2550 SMESH : Allow viscous layer with 3D extrusion X-Git-Tag: V7_3_0a1~357 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9ebd1fea410ce2a739a452f6aec822facc4d53cd;p=modules%2Fsmesh.git 0022103: EDF 2550 SMESH : Allow viscous layer with 3D extrusion = Allow viscous layers on boundary EDGEs of a 2D sub-mesh In GetUVPtStruct(), update normParam when reloading points from a proxy mesh in a reversed order --- diff --git a/src/StdMeshers/StdMeshers_FaceSide.cxx b/src/StdMeshers/StdMeshers_FaceSide.cxx index d83208167..a0e7f0034 100644 --- a/src/StdMeshers/StdMeshers_FaceSide.cxx +++ b/src/StdMeshers/StdMeshers_FaceSide.cxx @@ -362,7 +362,11 @@ const vector& StdMeshers_FaceSide::GetUVPtStruct(bool isXConst, double du1 = edgeUVPtStruct.back().param - edgeUVPtStruct[0].param; double du2 = myLast[iE] - myFirst[iE]; if ( du1 * du2 < 0 ) + { std::reverse( & points[iPt], & points[iPt + edgeUVPtStruct.size()]); + for ( size_t i = 0; i < edgeUVPtStruct.size(); ++i ) + points[iPt+i].normParam = 1. - points[iPt+i].normParam; + } // update normalized params if ( myEdge.size() > 1 ) { for ( size_t i = 0; i < edgeUVPtStruct.size(); ++i, ++iPt )