mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 08:39:16 +05:00
IPAL21286 1D Meshing for the Forward and Reversed Edge are equal.
This commit is contained in:
parent
418ecd5e73
commit
dfb859163d
@ -828,12 +828,14 @@ bool StdMeshers_Regular_1D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape & t
|
|||||||
{
|
{
|
||||||
list< double > params;
|
list< double > params;
|
||||||
bool reversed = false;
|
bool reversed = false;
|
||||||
|
if ( theMesh.GetShapeToMesh().ShapeType() >= TopAbs_WIRE )
|
||||||
|
reversed = ( EE.Orientation() == TopAbs_REVERSED );
|
||||||
if ( !_mainEdge.IsNull() )
|
if ( !_mainEdge.IsNull() )
|
||||||
reversed = ( _mainEdge.Orientation() == TopAbs_REVERSED );
|
reversed = ( _mainEdge.Orientation() == TopAbs_REVERSED );
|
||||||
else if ( _revEdgesIDs.size() > 0 ) {
|
else if ( _revEdgesIDs.size() > 0 ) {
|
||||||
for ( int i = 0; i < _revEdgesIDs.size(); i++)
|
for ( int i = 0; i < _revEdgesIDs.size(); i++)
|
||||||
if ( _revEdgesIDs[i] == shapeID )
|
if ( _revEdgesIDs[i] == shapeID )
|
||||||
reversed = true;
|
reversed = !reversed;
|
||||||
}
|
}
|
||||||
|
|
||||||
BRepAdaptor_Curve C3d( E );
|
BRepAdaptor_Curve C3d( E );
|
||||||
@ -978,13 +980,10 @@ bool StdMeshers_Regular_1D::Evaluate(SMESH_Mesh & theMesh,
|
|||||||
|
|
||||||
if (!Curve.IsNull()) {
|
if (!Curve.IsNull()) {
|
||||||
list< double > params;
|
list< double > params;
|
||||||
bool reversed = false;
|
|
||||||
if ( !_mainEdge.IsNull() )
|
|
||||||
reversed = ( _mainEdge.Orientation() == TopAbs_REVERSED );
|
|
||||||
|
|
||||||
BRepAdaptor_Curve C3d( E );
|
BRepAdaptor_Curve C3d( E );
|
||||||
double length = EdgeLength( E );
|
double length = EdgeLength( E );
|
||||||
if ( ! computeInternalParameters( theMesh, C3d, length, f, l, params, reversed, true )) {
|
if ( ! computeInternalParameters( theMesh, C3d, length, f, l, params, false, true )) {
|
||||||
SMESH_subMesh * sm = theMesh.GetSubMesh(theShape);
|
SMESH_subMesh * sm = theMesh.GetSubMesh(theShape);
|
||||||
aResMap.insert(std::make_pair(sm,aVec));
|
aResMap.insert(std::make_pair(sm,aVec));
|
||||||
SMESH_ComputeErrorPtr& smError = sm->GetComputeError();
|
SMESH_ComputeErrorPtr& smError = sm->GetComputeError();
|
||||||
|
Loading…
Reference in New Issue
Block a user