mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
PAL11200. Fix deflection case
This commit is contained in:
parent
40921fe0ae
commit
0eff916f1c
@ -27,6 +27,8 @@
|
||||
// Module : SMESH
|
||||
// $Header$
|
||||
|
||||
using namespace std;
|
||||
|
||||
#include "StdMeshers_Regular_1D.hxx"
|
||||
#include "StdMeshers_Distribution.hxx"
|
||||
#include "SMESH_Gen.hxx"
|
||||
@ -390,7 +392,6 @@ bool StdMeshers_Regular_1D::computeInternalParameters(const TopoDS_Edge& theEdge
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
GCPnts_UniformAbscissa Discret(C3d, eltSize, f, l);
|
||||
if ( !Discret.IsDone() )
|
||||
return false;
|
||||
@ -470,7 +471,7 @@ bool StdMeshers_Regular_1D::computeInternalParameters(const TopoDS_Edge& theEdge
|
||||
|
||||
case DEFLECTION: {
|
||||
|
||||
GCPnts_UniformDeflection Discret(C3d, _value[ DEFLECTION_IND ], true);
|
||||
GCPnts_UniformDeflection Discret(C3d, _value[ DEFLECTION_IND ], f, l, true);
|
||||
if ( !Discret.IsDone() )
|
||||
return false;
|
||||
|
||||
@ -541,10 +542,13 @@ bool StdMeshers_Regular_1D::Compute(SMESH_Mesh & aMesh, const TopoDS_Shape & aSh
|
||||
if ( !_mainEdge.IsNull() )
|
||||
reversed = aMesh.IsReversedInChain( EE, _mainEdge );
|
||||
try {
|
||||
if ( ! computeInternalParameters( E, params, reversed ))
|
||||
if ( ! computeInternalParameters( E, params, reversed )) {
|
||||
//cout << "computeInternalParameters() failed" <<endl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch ( Standard_Failure ) {
|
||||
//cout << "computeInternalParameters() failed, Standard_Failure" <<endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user