Fem: Add method to rename mesh group

This commit is contained in:
marioalexis
2025-10-29 00:38:41 -03:00
parent 5e42f6a48d
commit d018b3f8fb
4 changed files with 30 additions and 0 deletions

View File

@@ -2705,3 +2705,11 @@ bool FemMesh::removeGroup(int GroupId)
{
return this->getSMesh()->RemoveGroup(GroupId);
}
void FemMesh::renameGroup(int id, const std::string& name)
{
SMESH_Group* grp = this->getSMesh()->GetGroup(id);
if (grp) {
grp->SetName(name.c_str());
}
}