Modify the dump of MakeFilling: make appear non default parameters only.

This commit is contained in:
gdd 2012-08-23 13:49:16 +00:00
parent a162a53e32
commit a574e40770

View File

@ -1611,14 +1611,17 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeFilling
//Make a Python command //Make a Python command
GEOM::TPythonDump pd (aFunction); GEOM::TPythonDump pd (aFunction);
pd << aFilling << " = geompy.MakeFilling(" pd << aFilling << " = geompy.MakeFilling(" << theShape ;
<< theShape << ", " << theMinDeg << ", " << theMaxDeg << ", " if ( theMinDeg != 2 ) pd << ", theMinDeg=" << theMinDeg ;
<< theTol2D << ", " << theTol3D << ", " << theNbIter << ", "; if ( theMaxDeg != 5 ) pd << ", theMaxDeg=" << theMaxDeg ;
if( theMethod==1 ) pd << "GEOM.FOM_UseOri"; if ( fabs(theTol2D-0.0001) > Precision::Confusion() )
else if( theMethod==2 ) pd << "GEOM.FOM_AutoCorrect"; pd << ", theTol2D=" << theTol2D ;
else pd << "GEOM.FOM_Default"; if ( fabs(theTol3D-0.0001) > Precision::Confusion() )
if(isApprox) pd << ", theTol3D=" << theTol3D ;
pd << ", " << isApprox ; 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 << ")"; pd << ")";
SetErrorCode(OK); SetErrorCode(OK);