From 884e98278123a9e5a2c560136a4420afda2927f6 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 20 Apr 2011 13:45:19 +0000 Subject: [PATCH] 0020918: EDF 1447 SMESH: Mesh common borders (note 0010726) fix "Conditional jump or move depends on uninitialised value(s)" --- src/StdMeshers/StdMeshers_Import_1D2D.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/StdMeshers/StdMeshers_Import_1D2D.cxx b/src/StdMeshers/StdMeshers_Import_1D2D.cxx index 29ffeaf9a..796d9e129 100644 --- a/src/StdMeshers/StdMeshers_Import_1D2D.cxx +++ b/src/StdMeshers/StdMeshers_Import_1D2D.cxx @@ -51,6 +51,7 @@ #include #include #include +#include #include @@ -201,7 +202,7 @@ bool StdMeshers_Import_1D2D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape & SMDS_ElemIteratorPtr srcElems = srcGroup->GetElements(); SMDS_MeshNode *tmpNode = helper.AddNode(0,0,0); - gp_XY uv; + gp_XY uv( Precision::Infinite(), Precision::Infinite() ); while ( srcElems->more() ) // loop on group contents { const SMDS_MeshElement* face = srcElems->next(); @@ -350,7 +351,7 @@ bool StdMeshers_Import_1D2D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape & if ( !subShapeIDs.count( n->getshapeId() )) { for ( unsigned iE = 0; iE < edges.size(); ++iE ) - if ( helper.CheckNodeU( edges[iE], n, u, 10 * faceTol, /*force=*/true )) + if ( helper.CheckNodeU( edges[iE], n, u=0, 10 * faceTol, /*force=*/true )) { BRep_Tool::Range(edges[iE],f,l); if ( Abs(u-f) < 2 * faceTol || Abs(u-l) < 2 * faceTol ) -- 2.39.2