+ // Update Python script
+ TCollection_AsciiString str( "isDone = pattern.LoadFromFace( " );
+ SMESH_Gen_i::AddObject( str, theMesh ) += ", ";
+ SMESH_Gen_i::AddObject( str, theFace ) += ", ";
+ str += TCollection_AsciiString( theProject ) + " )";
+ SMESH_Gen_i::AddToCurrentPyScript( str );
+ addErrorCode( "LoadFromFace" );
+
+ return myPattern.Load( aMesh, TopoDS::Face( aFace ), theProject );