]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021489: EDF 2096: Regression in Prism algorithm between 6.3.1 and 6.4.0
authoreap <eap@opencascade.com>
Thu, 9 Feb 2012 12:30:06 +0000 (12:30 +0000)
committereap <eap@opencascade.com>
Thu, 9 Feb 2012 12:30:06 +0000 (12:30 +0000)
       fix LoadNodeColumns()

src/SMESH/SMESH_MesherHelper.cxx

index 47854cf6e64c877a8bccfdd608a60e3c6d03fdd8..4804b8f48814c87b63420763019fcc7568936ccd 100644 (file)
@@ -1695,7 +1695,7 @@ bool SMESH_MesherHelper::LoadNodeColumns(TParam2ColumnMap &            theParam2
     double f, l;
     BRep_Tool::Range( *edge, f, l );
     if ( edge->Orientation() == TopAbs_REVERSED ) std::swap( f, l );
-    const double coeff = 1. / ( l - f ) / length[iE] / fullLen;
+    const double coeff = 1. / ( l - f ) * length[iE] / fullLen;
     const double prevPar = theParam2ColumnMap.empty() ? 0 : theParam2ColumnMap.rbegin()->first;
     map< double, const SMDS_MeshNode*>::iterator u_n = sortedBaseNodes.begin();
     for ( ; u_n != sortedBaseNodes.end(); u_n++ )