From: dcq Date: Wed, 5 May 2004 10:01:35 +0000 (+0000) Subject: DCQ: Debug MakeFaces X-Git-Tag: Ecole_Ete_a4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d529c4223d21a653039fb54c16043139a417cdb5;p=modules%2Fgeom.git DCQ: Debug MakeFaces --- diff --git a/src/GEOM/GEOM_Gen_i.cc b/src/GEOM/GEOM_Gen_i.cc index 35a521545..41506b1e7 100644 --- a/src/GEOM/GEOM_Gen_i.cc +++ b/src/GEOM/GEOM_Gen_i.cc @@ -3741,10 +3741,21 @@ GEOM::GEOM_Shape_ptr GEOM_Gen_i::MakeFaces(const GEOM::GEOM_Gen::ListOfIOR& List FR.Perform(); if(FR.IsDone()) { - for(; FR.More(); FR.Next()) - aBuilder.Add(C, FR.Current().Oriented(OriF)); - result = CreateObject(C); - InsertInLabelMoreArguments(C, result, ListShapes, myCurrentOCAFDoc); + int k = 0; + TopoDS_Shape aFace; + for(; FR.More(); FR.Next()) { + aFace = FR.Current().Oriented(OriF); + aBuilder.Add(C, aFace); + k++; + } + if(k == 1) { + result = CreateObject(aFace); + InsertInLabelMoreArguments(aFace, result, ListShapes, myCurrentOCAFDoc); + } + else { + result = CreateObject(C); + InsertInLabelMoreArguments(C, result, ListShapes, myCurrentOCAFDoc); + } } } }