to retrieve the salome object from selection. It can be a GEOM, SMESH, or any
other module object.
- If it is a mesh, then it is possible to call GetMEDMesh() on the object.
+ If it is a mesh, then it is possible to call methods of the SMESH::SMESH_Mesh interface
+ on the object, for example GetShapeToMesh().
If it is not a mesh, this call will raise an exception.
- So it is possible to write the mesh retrieval in the following way:
+ So it is possible to write the code retrieving the shape a mesh is built on in the following way:
\code
mesh = None
try:
- mesh = salomeObj.GetMEDMesh()
+ shape = salomeObj.GetShapeToMesh()
except:
print "The selection is not a mesh"
\endcode