mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 20:20:33 +05:00
22360: EDF SMESH: Body Fitting algorithm: incorporate edges
Fix an invalid dump
This commit is contained in:
parent
73c2ea5773
commit
764df5f46f
@ -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 );
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
//================================================================================
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user