mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
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
This commit is contained in:
parent
dccff92fcb
commit
9ebd1fea41
@ -362,7 +362,11 @@ const vector<UVPtStruct>& StdMeshers_FaceSide::GetUVPtStruct(bool isXConst,
|
|||||||
double du1 = edgeUVPtStruct.back().param - edgeUVPtStruct[0].param;
|
double du1 = edgeUVPtStruct.back().param - edgeUVPtStruct[0].param;
|
||||||
double du2 = myLast[iE] - myFirst[iE];
|
double du2 = myLast[iE] - myFirst[iE];
|
||||||
if ( du1 * du2 < 0 )
|
if ( du1 * du2 < 0 )
|
||||||
|
{
|
||||||
std::reverse( & points[iPt], & points[iPt + edgeUVPtStruct.size()]);
|
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
|
// update normalized params
|
||||||
if ( myEdge.size() > 1 ) {
|
if ( myEdge.size() > 1 ) {
|
||||||
for ( size_t i = 0; i < edgeUVPtStruct.size(); ++i, ++iPt )
|
for ( size_t i = 0; i < edgeUVPtStruct.size(); ++i, ++iPt )
|
||||||
|
Loading…
Reference in New Issue
Block a user