From: eap Date: Thu, 9 Feb 2012 12:31:36 +0000 (+0000) Subject: 0021489: EDF 2096: Regression in Prism algorithm between 6.3.1 and 6.4.0 X-Git-Tag: V6_5_0a1~152 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e830e055d0ac387717242f1af16815e39e0076dc;p=modules%2Fsmesh.git 0021489: EDF 2096: Regression in Prism algorithm between 6.3.1 and 6.4.0 fix after changed behaviour of LoadNodeColumns() - bool isForward = ( edgeIt->Orientation() == TopAbs_FORWARD ); + bool isForward = + StdMeshers_PrismAsBlock::IsForwardEdge( myHelper->GetMeshDS(), + myParam2ColumnMaps[iE], + *edgeIt, SMESH_Block::ID_Fx0z ); --- diff --git a/src/StdMeshers/StdMeshers_Prism_3D.cxx b/src/StdMeshers/StdMeshers_Prism_3D.cxx index 4b6055c07..0c923db3d 100644 --- a/src/StdMeshers/StdMeshers_Prism_3D.cxx +++ b/src/StdMeshers/StdMeshers_Prism_3D.cxx @@ -1460,9 +1460,12 @@ bool StdMeshers_PrismAsBlock::Init(SMESH_MesherHelper* helper, int nbSplit = i_nb->second; vector< double > params; splitParams( nbSplit, &myParam2ColumnMaps[ iE ], params ); - bool isForward = ( edgeIt->Orientation() == TopAbs_FORWARD ); + const bool isForward = + StdMeshers_PrismAsBlock::IsForwardEdge( myHelper->GetMeshDS(), + myParam2ColumnMaps[iE], + *edgeIt, SMESH_Block::ID_Fx0z ); for ( int i = 0; i < nbSplit; ++i ) { - double f = ( isForward ? params[ i ] : params[ nbSplit - i-1 ]); + double f = ( isForward ? params[ i ] : params[ nbSplit - i-1 ]); double l = ( isForward ? params[ i+1 ] : params[ nbSplit - i ]); TSideFace* comp = new TSideFace( myHelper, wallFaceIds[ iSide ], *faceIt, *edgeIt, @@ -1753,7 +1756,7 @@ bool StdMeshers_PrismAsBlock::GetLayersTransformation(vector & trsf) co * \param columnsMap - node columns map of side face * \param bottomEdge - the bootom edge * \param sideFaceID - side face in-block ID - * \retval bool - true if orientation coinside with in-block froward orientation + * \retval bool - true if orientation coinside with in-block forward orientation */ //================================================================================