From: gdd Date: Thu, 23 Aug 2012 13:49:16 +0000 (+0000) Subject: Modify the dump of MakeFilling: make appear non default parameters only. X-Git-Tag: V6_6_0a1~43 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a574e40770cef768c49808491a930e636545fc6a;p=modules%2Fgeom.git Modify the dump of MakeFilling: make appear non default parameters only. --- diff --git a/src/GEOMImpl/GEOMImpl_I3DPrimOperations.cxx b/src/GEOMImpl/GEOMImpl_I3DPrimOperations.cxx index 12d2e4df2..dc2ab3599 100644 --- a/src/GEOMImpl/GEOMImpl_I3DPrimOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_I3DPrimOperations.cxx @@ -1611,14 +1611,17 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeFilling //Make a Python command GEOM::TPythonDump pd (aFunction); - pd << aFilling << " = geompy.MakeFilling(" - << theShape << ", " << theMinDeg << ", " << theMaxDeg << ", " - << theTol2D << ", " << theTol3D << ", " << theNbIter << ", "; - if( theMethod==1 ) pd << "GEOM.FOM_UseOri"; - else if( theMethod==2 ) pd << "GEOM.FOM_AutoCorrect"; - else pd << "GEOM.FOM_Default"; - if(isApprox) - pd << ", " << isApprox ; + pd << aFilling << " = geompy.MakeFilling(" << theShape ; + if ( theMinDeg != 2 ) pd << ", theMinDeg=" << theMinDeg ; + if ( theMaxDeg != 5 ) pd << ", theMaxDeg=" << theMaxDeg ; + if ( fabs(theTol2D-0.0001) > Precision::Confusion() ) + pd << ", theTol2D=" << theTol2D ; + if ( fabs(theTol3D-0.0001) > Precision::Confusion() ) + pd << ", theTol3D=" << theTol3D ; + if ( theNbIter != 0 ) pd << ", theNbIter=" << theNbIter ; + if ( theMethod==1 ) pd << ", theMethod=GEOM.FOM_UseOri"; + else if( theMethod==2 ) pd << ", theMethod=GEOM.FOM_AutoCorrect"; + if(isApprox) pd << ", isApprox=" << isApprox ; pd << ")"; SetErrorCode(OK);