mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 15:17:27 +05:00
23476: EDF 15343 - Translate mesh
pb: a group on filter is not updated since the mesh is not marked as modified
This commit is contained in:
parent
06f98b8021
commit
291fbe554b
@ -3108,17 +3108,14 @@ SMESH_MeshEditor_i::mirror(TIDSortedElemSet & theElements,
|
|||||||
::SMESH_MeshEditor::PGroupIDs groupIds =
|
::SMESH_MeshEditor::PGroupIDs groupIds =
|
||||||
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
||||||
|
|
||||||
if ( theCopy && !myIsPreviewMode)
|
if ( !myIsPreviewMode )
|
||||||
{
|
{
|
||||||
if ( theTargetMesh )
|
if ( theTargetMesh )
|
||||||
{
|
|
||||||
theTargetMesh->GetMeshDS()->Modified();
|
theTargetMesh->GetMeshDS()->Modified();
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
declareMeshModified( /*isReComputeSafe=*/false );
|
declareMeshModified( /*isReComputeSafe=*/false );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
||||||
|
|
||||||
SMESH_CATCH( SMESH::throwCorbaException );
|
SMESH_CATCH( SMESH::throwCorbaException );
|
||||||
@ -3375,16 +3372,12 @@ SMESH_MeshEditor_i::translate(TIDSortedElemSet & theElements,
|
|||||||
::SMESH_MeshEditor::PGroupIDs groupIds =
|
::SMESH_MeshEditor::PGroupIDs groupIds =
|
||||||
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
||||||
|
|
||||||
if ( theCopy && !myIsPreviewMode )
|
if ( !myIsPreviewMode )
|
||||||
{
|
{
|
||||||
if ( theTargetMesh )
|
if ( theTargetMesh )
|
||||||
{
|
|
||||||
theTargetMesh->GetMeshDS()->Modified();
|
theTargetMesh->GetMeshDS()->Modified();
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
declareMeshModified( /*isReComputeSafe=*/false );
|
declareMeshModified( /*isReComputeSafe=*/false );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
||||||
@ -3632,7 +3625,7 @@ SMESH_MeshEditor_i::rotate(TIDSortedElemSet & theElements,
|
|||||||
::SMESH_MeshEditor::PGroupIDs groupIds =
|
::SMESH_MeshEditor::PGroupIDs groupIds =
|
||||||
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
||||||
|
|
||||||
if ( theCopy && !myIsPreviewMode)
|
if ( !myIsPreviewMode)
|
||||||
{
|
{
|
||||||
if ( theTargetMesh ) theTargetMesh->GetMeshDS()->Modified();
|
if ( theTargetMesh ) theTargetMesh->GetMeshDS()->Modified();
|
||||||
else declareMeshModified( /*isReComputeSafe=*/false );
|
else declareMeshModified( /*isReComputeSafe=*/false );
|
||||||
@ -3932,7 +3925,7 @@ SMESH_MeshEditor_i::scale(SMESH::SMESH_IDSource_ptr theObject,
|
|||||||
::SMESH_MeshEditor::PGroupIDs groupIds =
|
::SMESH_MeshEditor::PGroupIDs groupIds =
|
||||||
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
||||||
|
|
||||||
if ( theCopy && !myIsPreviewMode )
|
if ( !myIsPreviewMode )
|
||||||
{
|
{
|
||||||
if ( theTargetMesh ) theTargetMesh->GetMeshDS()->Modified();
|
if ( theTargetMesh ) theTargetMesh->GetMeshDS()->Modified();
|
||||||
else declareMeshModified( /*isReComputeSafe=*/false );
|
else declareMeshModified( /*isReComputeSafe=*/false );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user