22360: EDF SMESH: Body Fitting algorithm: incorporate edges

Fix an invalid dump
This commit is contained in:
eap 2014-07-17 14:11:52 +04:00
parent 73c2ea5773
commit 764df5f46f
2 changed files with 18 additions and 12 deletions

View File

@ -3163,23 +3163,28 @@ void _pyComplexParamHypo::Process( const Handle(_pyCommand)& theCommand)
void _pyComplexParamHypo::Flush()
{
list < Handle(_pyCommand) >::iterator cmd;
if ( IsWrapped() )
{
list < Handle(_pyCommand) >::iterator cmd = myUnusedCommands.begin();
for ( ; cmd != myUnusedCommands.end(); ++cmd )
for ( cmd = myUnusedCommands.begin(); cmd != myUnusedCommands.end(); ++cmd )
if ((*cmd)->GetMethod() == "SetObjectEntry" )
(*cmd)->Clear();
if ( GetAlgoType() == "Cartesian_3D" )
{
_pyID algo = myCreationCmd->GetObject();
for ( cmd = myProcessedCmds.begin(); cmd != myProcessedCmds.end(); ++cmd )
{
StructToList( *cmd, /*checkMethod=*/false );
(*cmd)->SetObject( algo );
}
}
}
// if ( GetAlgoType() == "Cartesian_3D" )
// {
// _pyID algo = myCreationCmd->GetObject();
// for ( cmd = myProcessedCmds.begin(); cmd != myProcessedCmds.end(); ++cmd )
// {
// if ( IsWrapped() )
// {
// StructToList( *cmd, /*checkMethod=*/false );
// const _AString & method = (*cmd)->GetMethod();
// if ( method == "SetFixedPoint" )
// (*cmd)->SetObject( algo );
// }
// }
// }
}
//================================================================================

View File

@ -1209,6 +1209,7 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
if ( theNames.IsBound( anEntry ))
{
aGUIName = theNames.Find(anEntry);
aGUIName.RemoveAll('\''); // remove a quote from a name (issue 22360)
setNamePart += nt + aSMESHGen + ".SetName(" + aName;
if ( anEntry2AccessorMethod.IsBound( anEntry ) )
setNamePart += helper + "." + anEntry2AccessorMethod( anEntry );