mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-01 00:55:36 +05:00
PAL15174 (Dump study works wrong for Concatenate)
minor improvement
This commit is contained in:
parent
9315e9e9d2
commit
f3488617a0
@ -1170,12 +1170,11 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::Concatenate(const SMESH::mesh_array& theMeshe
|
|||||||
typedef map< pair<string, SMESH::ElementType>, TListOfNewGroups > TGroupsMap;
|
typedef map< pair<string, SMESH::ElementType>, TListOfNewGroups > TGroupsMap;
|
||||||
typedef std::set<SMESHDS_GroupBase*> TGroups;
|
typedef std::set<SMESHDS_GroupBase*> TGroups;
|
||||||
|
|
||||||
|
TPythonDump aPythonDump; // prevent dump of called methods
|
||||||
|
|
||||||
// create mesh
|
// create mesh
|
||||||
SMESH::SMESH_Mesh_var aNewMesh = CreateEmptyMesh();
|
SMESH::SMESH_Mesh_var aNewMesh = CreateEmptyMesh();
|
||||||
|
|
||||||
// to update Python script
|
|
||||||
TPythonDump aPythonDump;
|
|
||||||
|
|
||||||
if ( !aNewMesh->_is_nil() ) {
|
if ( !aNewMesh->_is_nil() ) {
|
||||||
SMESH_Mesh_i* aNewImpl = dynamic_cast<SMESH_Mesh_i*>( GetServant( aNewMesh ).in() );
|
SMESH_Mesh_i* aNewImpl = dynamic_cast<SMESH_Mesh_i*>( GetServant( aNewMesh ).in() );
|
||||||
if ( aNewImpl ) {
|
if ( aNewImpl ) {
|
||||||
@ -1326,7 +1325,6 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::Concatenate(const SMESH::mesh_array& theMeshe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update Python script
|
// Update Python script
|
||||||
RemoveLastFromPythonScript( GetCurrentStudyID() );
|
|
||||||
aPythonDump << aNewMesh << " = " << this << ".Concatenate(";
|
aPythonDump << aNewMesh << " = " << this << ".Concatenate(";
|
||||||
aPythonDump << "[";
|
aPythonDump << "[";
|
||||||
for ( int i = 0; i < theMeshesArray.length(); i++) {
|
for ( int i = 0; i < theMeshesArray.length(); i++) {
|
||||||
@ -1335,8 +1333,8 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::Concatenate(const SMESH::mesh_array& theMeshe
|
|||||||
}
|
}
|
||||||
aPythonDump << "], ";
|
aPythonDump << "], ";
|
||||||
aPythonDump << theUniteIdenticalGroups << ", "
|
aPythonDump << theUniteIdenticalGroups << ", "
|
||||||
<< theMergeNodesAndElements << ", "
|
<< theMergeNodesAndElements << ", "
|
||||||
<< theMergeTolerance << ")";
|
<< theMergeTolerance << ")";
|
||||||
|
|
||||||
return aNewMesh._retn();
|
return aNewMesh._retn();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user