- TCollection_AsciiString str( "pattern.ApplyToHexahedrons( " );
- SMESH_Gen_i::AddObject( str, theMesh ) += ", ";
- SMESH_Gen_i::AddArray( str, theVolumesIDs ) += ", ";
- str += TCollection_AsciiString( (int)theNode000Index ) + ", ";
- str += TCollection_AsciiString( (int)theNode001Index ) + " )";
- SMESH_Gen_i::AddToCurrentPyScript( str );
+ TPythonDump() << "pattern.ApplyToHexahedrons( " << theMesh << ", "
+ << theVolumesIDs << ", "
+ << theNode000Index << ", " << theNode001Index << " )";