mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
0020945: EDF 1465 SMESH: create a new mesh from a selected group or from selected elements
dump SMESH_IDSource made by SMESH_MeshEditor::MakeIDSource() as mesh.GetIDSource()
This commit is contained in:
parent
9e91777707
commit
795b58c106
@ -232,7 +232,10 @@ namespace SMESH
|
|||||||
if(!aSObject->_is_nil() || CORBA::is_nil( theArg ))
|
if(!aSObject->_is_nil() || CORBA::is_nil( theArg ))
|
||||||
return *this << aSObject;
|
return *this << aSObject;
|
||||||
SMESH::long_array_var anElementsId = theArg->GetIDs();
|
SMESH::long_array_var anElementsId = theArg->GetIDs();
|
||||||
return *this << anElementsId;
|
SMESH::SMESH_Mesh_var mesh = theArg->GetMesh();
|
||||||
|
SMESH::array_of_ElementType_var types = theArg->GetTypes();
|
||||||
|
SMESH::ElementType type = types->length() ? types[0] : SMESH::ALL;
|
||||||
|
return *this << mesh << ".GetIDSource(" << anElementsId << ", " << type << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
TPythonDump&
|
TPythonDump&
|
||||||
|
Loading…
Reference in New Issue
Block a user