mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
IPAL0053055: Import-1D2D algorithm fails
This commit is contained in:
parent
d45cd9ae88
commit
14497e96c0
@ -2905,9 +2905,9 @@ bool SMESH_MesherHelper::IsReversedSubMesh (const TopoDS_Face& theFace)
|
|||||||
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)
|
// check that the 2 nodes are connected with a segment (IPAL53055)
|
||||||
// if ( SMESHDS_SubMesh* sm = GetMeshDS()->MeshElements( E ))
|
if ( SMESHDS_SubMesh* sm = GetMeshDS()->MeshElements( E ))
|
||||||
// if ( sm->NbElements() > 0 && !GetMeshDS()->FindEdge( nn[0], nn[1] ))
|
if ( sm->NbElements() > 0 && !GetMeshDS()->FindEdge( nn[0], nn[1] ))
|
||||||
// ok = false;
|
ok = false;
|
||||||
if ( ok )
|
if ( ok )
|
||||||
{
|
{
|
||||||
isReversed = ( u0 > u1 );
|
isReversed = ( u0 > u1 );
|
||||||
|
@ -219,7 +219,7 @@ bool StdMeshers_Import_1D2D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape &
|
|||||||
bndBox2d.Enlarge( 1e-2 * Sqrt( bndBox2d.SquareExtent() ));
|
bndBox2d.Enlarge( 1e-2 * Sqrt( bndBox2d.SquareExtent() ));
|
||||||
|
|
||||||
BRepBndLib::Add( geomFace, bndBox3d );
|
BRepBndLib::Add( geomFace, bndBox3d );
|
||||||
bndBox3d.Enlarge( 1e-5 * sqrt( bndBox3d.SquareExtent() ));
|
bndBox3d.Enlarge( 1e-2 * sqrt( bndBox3d.SquareExtent() ));
|
||||||
}
|
}
|
||||||
|
|
||||||
set<int> subShapeIDs;
|
set<int> subShapeIDs;
|
||||||
|
Loading…
Reference in New Issue
Block a user