Set mesh name at mesh creation: mesh = smesh.Mesh( geo, NAME )

This commit is contained in:
eap 2021-12-24 12:34:27 +03:00
parent 9fabf4875d
commit ee8a2759a5

View File

@ -1013,6 +1013,11 @@ void _pyGen::Process( const Handle(_pyCommand)& theCommand )
{
Handle(_pyMesh) mesh = new _pyMesh( theCommand );
AddObject( mesh );
// set mesh name
_pyID id = mesh->GetID(), comma("'");
if ( myObjectNames.IsBound( id ))
theCommand->SetArg( theCommand->GetNbArgs() + 1,
comma + myObjectNames( id ) + comma);
return;
}
if ( method == "CreateMeshesFromUNV" ||