mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-15 21:21:21 +05:00
0021338: EDF 1926 SMESH: New controls and filters
Correctly set mesh modified at transformations
This commit is contained in:
parent
e65e4d9a03
commit
da61389f82
@ -3003,11 +3003,19 @@ SMESH_MeshEditor_i::mirror(TIDSortedElemSet & theElements,
|
|||||||
anEditor.Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
anEditor.Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
||||||
|
|
||||||
if(theCopy || myPreviewMode)
|
if(theCopy || myPreviewMode)
|
||||||
storeResult(anEditor);
|
storeResult(anEditor); // store preview data or new elements
|
||||||
|
|
||||||
|
if ( !myPreviewMode )
|
||||||
|
{
|
||||||
|
if ( theTargetMesh )
|
||||||
|
{
|
||||||
|
theTargetMesh->GetMeshDS()->Modified();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
myMesh->SetIsModified( true );
|
|
||||||
myMesh->GetMeshDS()->Modified();
|
myMesh->GetMeshDS()->Modified();
|
||||||
|
myMesh->SetIsModified( true );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
||||||
}
|
}
|
||||||
@ -3259,11 +3267,19 @@ SMESH_MeshEditor_i::translate(TIDSortedElemSet & theElements,
|
|||||||
|
|
||||||
if(theCopy || myPreviewMode)
|
if(theCopy || myPreviewMode)
|
||||||
storeResult(anEditor);
|
storeResult(anEditor);
|
||||||
|
|
||||||
|
if ( !myPreviewMode )
|
||||||
|
{
|
||||||
|
if ( theTargetMesh )
|
||||||
|
{
|
||||||
|
theTargetMesh->GetMeshDS()->Modified();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
myMesh->GetMeshDS()->Modified();
|
myMesh->GetMeshDS()->Modified();
|
||||||
myMesh->SetIsModified( true );
|
myMesh->SetIsModified( true );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
||||||
}
|
}
|
||||||
@ -3501,11 +3517,19 @@ SMESH_MeshEditor_i::rotate(TIDSortedElemSet & theElements,
|
|||||||
|
|
||||||
if(theCopy || myPreviewMode)
|
if(theCopy || myPreviewMode)
|
||||||
storeResult(anEditor);
|
storeResult(anEditor);
|
||||||
|
|
||||||
|
if ( !myPreviewMode )
|
||||||
|
{
|
||||||
|
if ( theTargetMesh )
|
||||||
|
{
|
||||||
|
theTargetMesh->GetMeshDS()->Modified();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
myMesh->GetMeshDS()->Modified();
|
myMesh->GetMeshDS()->Modified();
|
||||||
myMesh->SetIsModified( true );
|
myMesh->SetIsModified( true );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
||||||
}
|
}
|
||||||
@ -3772,11 +3796,20 @@ SMESH_MeshEditor_i::scale(SMESH::SMESH_IDSource_ptr theObject,
|
|||||||
|
|
||||||
if(theCopy || myPreviewMode )
|
if(theCopy || myPreviewMode )
|
||||||
storeResult(anEditor);
|
storeResult(anEditor);
|
||||||
|
|
||||||
|
if ( !myPreviewMode )
|
||||||
|
{
|
||||||
|
if ( theTargetMesh )
|
||||||
|
{
|
||||||
|
theTargetMesh->GetMeshDS()->Modified();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
myMesh->GetMeshDS()->Modified();
|
myMesh->GetMeshDS()->Modified();
|
||||||
myMesh->SetIsModified( true );
|
myMesh->SetIsModified( true );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4121,6 +4154,8 @@ void SMESH_MeshEditor_i::MergeEqualElements()
|
|||||||
::SMESH_MeshEditor anEditor( myMesh );
|
::SMESH_MeshEditor anEditor( myMesh );
|
||||||
anEditor.MergeEqualElements();
|
anEditor.MergeEqualElements();
|
||||||
|
|
||||||
|
myMesh->GetMeshDS()->Modified();
|
||||||
|
|
||||||
TPythonDump() << this << ".MergeEqualElements()";
|
TPythonDump() << this << ".MergeEqualElements()";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user