mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-13 17:18:35 +05:00
23104: EDF SMESH: Pre-study for Netgen 5x
Regression of SALOME_TESTS/Grids/smesh/1D_mesh_AutomaticLength_00/A3
This commit is contained in:
parent
1a1b88b9cf
commit
766145cb04
@ -2944,12 +2944,16 @@ bool SMESH_MesherHelper::IsReversedSubMesh (const TopoDS_Face& theFace)
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
double u0 = GetNodeU( TopoDS::Edge( E ), nn[0], nn[1], &ok );
|
double u0 = GetNodeU( TopoDS::Edge( E ), nn[0], nn[1], &ok );
|
||||||
double u1 = GetNodeU( TopoDS::Edge( E ), nn[1], nn[0], &ok );
|
double u1 = GetNodeU( TopoDS::Edge( E ), nn[1], nn[0], &ok );
|
||||||
// check that the 2 nodes are connected with a segment (IPAL53055)
|
if ( ok )
|
||||||
const SMDS_MeshElement* seg;
|
{
|
||||||
if ( SMESHDS_SubMesh* sm = GetMeshDS()->MeshElements( E ))
|
// check that the 2 nodes are connected with a segment (IPAL53055)
|
||||||
if (( sm->NbElements() > 0 ) &&
|
ok = false;
|
||||||
( seg = GetMeshDS()->FindEdge( nn[0], nn[1] )))
|
const SMDS_MeshElement* seg;
|
||||||
ok = sm->Contains( seg );
|
if ( SMESHDS_SubMesh* sm = GetMeshDS()->MeshElements( E ))
|
||||||
|
if (( sm->NbElements() > 0 ) &&
|
||||||
|
( seg = GetMeshDS()->FindEdge( nn[0], nn[1] )))
|
||||||
|
ok = sm->Contains( seg );
|
||||||
|
}
|
||||||
if ( ok )
|
if ( ok )
|
||||||
{
|
{
|
||||||
isReversed = ( u0 > u1 );
|
isReversed = ( u0 > u1 );
|
||||||
|
Loading…
Reference in New Issue
Block a user