0020919: EDF 1472 SMESH: Linear to quadratic conversion fails with hexaedron algorithm

* fix FixQuadraticElements()
This commit is contained in:
eap 2010-07-20 06:06:38 +00:00
parent 90bfbd9c1e
commit cc0f9654b4

View File

@ -2508,6 +2508,8 @@ void SMESH_MesherHelper::FixQuadraticElements(bool volumeOnly)
// uvMove = uvm - uv12
gp_XY uvMove = applyIn2D(surf, uvm, uv12, gp_XY_Subtracted, /*inPeriod=*/false);
( is1 ? move1 : move0 ).SetCoord( uvMove.X(), uvMove.Y(), 0 );
if ( !is1 ) // correct nodeOnFace for move1 (issue 0020919)
nodeOnFace = (*(++chain.rbegin()))->_mediumNode;
}
if ( move0.SquareMagnitude() < straightTol2 &&
move1.SquareMagnitude() < straightTol2 ) {