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