mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-14 17:48:34 +05:00
IPAL20992 Controls Free nodes works wrong
This commit is contained in:
parent
ddbb0db133
commit
8fccf870d3
@ -547,8 +547,8 @@ SMESH_DeviceActor
|
|||||||
}else if(FreeNodes* aFreeNodes = dynamic_cast<FreeNodes*>(theFunctor.get())){
|
}else if(FreeNodes* aFreeNodes = dynamic_cast<FreeNodes*>(theFunctor.get())){
|
||||||
myExtractUnstructuredGrid->SetModeOfChanging(VTKViewer_ExtractUnstructuredGrid::eAdding);
|
myExtractUnstructuredGrid->SetModeOfChanging(VTKViewer_ExtractUnstructuredGrid::eAdding);
|
||||||
vtkUnstructuredGrid* aGrid = myVisualObj->GetUnstructuredGrid();
|
vtkUnstructuredGrid* aGrid = myVisualObj->GetUnstructuredGrid();
|
||||||
vtkIdType aNbCells = aGrid->GetNumberOfCells();
|
vtkIdType aNbNodes = myVisualObj->GetNbEntities(SMDSAbs_Node);
|
||||||
for( vtkIdType i = 0; i < aNbCells; i++ ){
|
for( vtkIdType i = 0; i < aNbNodes; i++ ){
|
||||||
vtkIdType anObjId = myVisualObj->GetNodeObjId(i);
|
vtkIdType anObjId = myVisualObj->GetNodeObjId(i);
|
||||||
if(aFreeNodes->IsSatisfy(anObjId))
|
if(aFreeNodes->IsSatisfy(anObjId))
|
||||||
myExtractUnstructuredGrid->RegisterCell(i);
|
myExtractUnstructuredGrid->RegisterCell(i);
|
||||||
|
@ -239,6 +239,7 @@ QString SMESHGUI_Selection::controlMode( int ind ) const
|
|||||||
case SMESH_Actor::eLength: return "eLength";
|
case SMESH_Actor::eLength: return "eLength";
|
||||||
case SMESH_Actor::eLength2D: return "eLength2D";
|
case SMESH_Actor::eLength2D: return "eLength2D";
|
||||||
case SMESH_Actor::eFreeEdges: return "eFreeEdges";
|
case SMESH_Actor::eFreeEdges: return "eFreeEdges";
|
||||||
|
case SMESH_Actor::eFreeNodes: return "eFreeNodes";
|
||||||
case SMESH_Actor::eFreeBorders: return "eFreeBorders";
|
case SMESH_Actor::eFreeBorders: return "eFreeBorders";
|
||||||
case SMESH_Actor::eFreeFaces: return "eFreeFaces";
|
case SMESH_Actor::eFreeFaces: return "eFreeFaces";
|
||||||
case SMESH_Actor::eMultiConnection: return "eMultiConnection";
|
case SMESH_Actor::eMultiConnection: return "eMultiConnection";
|
||||||
|
Loading…
Reference in New Issue
Block a user