mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-10 20:13:08 +05:00
Set mesh name at mesh creation: mesh = smesh.Mesh( geo, NAME )
This commit is contained in:
parent
9fabf4875d
commit
ee8a2759a5
@ -1013,6 +1013,11 @@ void _pyGen::Process( const Handle(_pyCommand)& theCommand )
|
|||||||
{
|
{
|
||||||
Handle(_pyMesh) mesh = new _pyMesh( theCommand );
|
Handle(_pyMesh) mesh = new _pyMesh( theCommand );
|
||||||
AddObject( mesh );
|
AddObject( mesh );
|
||||||
|
// set mesh name
|
||||||
|
_pyID id = mesh->GetID(), comma("'");
|
||||||
|
if ( myObjectNames.IsBound( id ))
|
||||||
|
theCommand->SetArg( theCommand->GetNbArgs() + 1,
|
||||||
|
comma + myObjectNames( id ) + comma);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( method == "CreateMeshesFromUNV" ||
|
if ( method == "CreateMeshesFromUNV" ||
|
||||||
|
Loading…
Reference in New Issue
Block a user