From: dmv Date: Wed, 7 Oct 2009 09:40:34 +0000 (+0000) Subject: 0020505: EDF 1074 GEOM: GetGlueFace anomaly X-Git-Tag: V4_1_0_maintainance_FINAL~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ff5edc8c8c709547f796d2afcc6334924a0b2e5e;p=modules%2Fgeom.git 0020505: EDF 1074 GEOM: GetGlueFace anomaly --- diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index 2bf73b05c..99ace6a7b 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -641,12 +641,13 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::GetGlueFaces } //Make a Python command - if(anAsciiList.Length()>0) + if(anAsciiList.Length()>0) { anAsciiList.Trunc(anAsciiList.Length() - 1); - Handle(GEOM_Function) aFunction = theShape->GetLastFunction(); - GEOM::TPythonDump pd (aFunction, /*append=*/true); - pd << "[" << anAsciiList.ToCString(); - pd << "] = geompy.GetGlueFaces(" << theShape << ", " << theTolerance << ")"; + Handle(GEOM_Function) aFunction = theShape->GetLastFunction(); + GEOM::TPythonDump pd (aFunction, /*append=*/true); + pd << "[" << anAsciiList.ToCString(); + pd << "] = geompy.GetGlueFaces(" << theShape << ", " << theTolerance << ")"; + } SetErrorCode(OK);