mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
windows port
This commit is contained in:
parent
4d43188368
commit
3cd9dd3663
@ -889,7 +889,7 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateMeshesFromUNV( const char* theFileName
|
|||||||
aStudyBuilder->CommitCommand();
|
aStudyBuilder->CommitCommand();
|
||||||
if ( !aSO->_is_nil() ) {
|
if ( !aSO->_is_nil() ) {
|
||||||
// Update Python script
|
// Update Python script
|
||||||
TPythonDump() << aSO << " = smeshgen.CreateMeshesFromUNV('" << theFileName << "')";
|
TPythonDump() << aSO << " = smeshgen.CreateMeshesFromUNV(r'" << theFileName << "')";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -978,7 +978,7 @@ SMESH::mesh_array* SMESH_Gen_i::CreateMeshesFromMED( const char* theFileName,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update Python script
|
// Update Python script
|
||||||
aPythonDump << "], status) = " << this << ".CreateMeshesFromMED('" << theFileName << "')";
|
aPythonDump << "], status) = " << this << ".CreateMeshesFromMED(r'" << theFileName << "')";
|
||||||
}
|
}
|
||||||
// Dump creation of groups
|
// Dump creation of groups
|
||||||
for ( int i = 0; i < aResult->length(); ++i )
|
for ( int i = 0; i < aResult->length(); ++i )
|
||||||
@ -1012,7 +1012,7 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateMeshesFromSTL( const char* theFileName
|
|||||||
aStudyBuilder->CommitCommand();
|
aStudyBuilder->CommitCommand();
|
||||||
if ( !aSO->_is_nil() ) {
|
if ( !aSO->_is_nil() ) {
|
||||||
// Update Python script
|
// Update Python script
|
||||||
TPythonDump() << aSO << " = " << this << ".CreateMeshesFromSTL('" << theFileName << "')";
|
TPythonDump() << aSO << " = " << this << ".CreateMeshesFromSTL(r'" << theFileName << "')";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2390,7 +2390,7 @@ void SMESH_Mesh_i::ExportToMEDX (const char* file,
|
|||||||
// check names of groups
|
// check names of groups
|
||||||
checkGroupNames();
|
checkGroupNames();
|
||||||
|
|
||||||
TPythonDump() << _this() << ".ExportToMEDX( '"
|
TPythonDump() << _this() << ".ExportToMEDX( r'"
|
||||||
<< file << "', " << auto_groups << ", " << theVersion << ", " << overwrite << " )";
|
<< file << "', " << auto_groups << ", " << theVersion << ", " << overwrite << " )";
|
||||||
|
|
||||||
_impl->ExportMED( file, aMeshName, auto_groups, theVersion );
|
_impl->ExportMED( file, aMeshName, auto_groups, theVersion );
|
||||||
@ -2419,7 +2419,7 @@ void SMESH_Mesh_i::ExportDAT (const char *file)
|
|||||||
// Update Python script
|
// Update Python script
|
||||||
// check names of groups
|
// check names of groups
|
||||||
checkGroupNames();
|
checkGroupNames();
|
||||||
TPythonDump() << _this() << ".ExportDAT( '" << file << "' )";
|
TPythonDump() << _this() << ".ExportDAT( r'" << file << "' )";
|
||||||
|
|
||||||
// Perform Export
|
// Perform Export
|
||||||
PrepareForWriting(file);
|
PrepareForWriting(file);
|
||||||
@ -2434,7 +2434,7 @@ void SMESH_Mesh_i::ExportUNV (const char *file)
|
|||||||
// Update Python script
|
// Update Python script
|
||||||
// check names of groups
|
// check names of groups
|
||||||
checkGroupNames();
|
checkGroupNames();
|
||||||
TPythonDump() << _this() << ".ExportUNV( '" << file << "' )";
|
TPythonDump() << _this() << ".ExportUNV( r'" << file << "' )";
|
||||||
|
|
||||||
// Perform Export
|
// Perform Export
|
||||||
PrepareForWriting(file);
|
PrepareForWriting(file);
|
||||||
@ -2449,7 +2449,7 @@ void SMESH_Mesh_i::ExportSTL (const char *file, const bool isascii)
|
|||||||
// Update Python script
|
// Update Python script
|
||||||
// check names of groups
|
// check names of groups
|
||||||
checkGroupNames();
|
checkGroupNames();
|
||||||
TPythonDump() << _this() << ".ExportSTL( '" << file << "', " << isascii << " )";
|
TPythonDump() << _this() << ".ExportSTL( r'" << file << "', " << isascii << " )";
|
||||||
|
|
||||||
// Perform Export
|
// Perform Export
|
||||||
PrepareForWriting(file);
|
PrepareForWriting(file);
|
||||||
|
Loading…
Reference in New Issue
Block a user