}else if(FreeNodes* aFreeNodes = dynamic_cast<FreeNodes*>(theFunctor.get())){
myExtractUnstructuredGrid->SetModeOfChanging(VTKViewer_ExtractUnstructuredGrid::eAdding);
vtkUnstructuredGrid* aGrid = myVisualObj->GetUnstructuredGrid();
- vtkIdType aNbCells = aGrid->GetNumberOfCells();
- for( vtkIdType i = 0; i < aNbCells; i++ ){
+ vtkIdType aNbNodes = myVisualObj->GetNbEntities(SMDSAbs_Node);
+ for( vtkIdType i = 0; i < aNbNodes; i++ ){
vtkIdType anObjId = myVisualObj->GetNodeObjId(i);
if(aFreeNodes->IsSatisfy(anObjId))
myExtractUnstructuredGrid->RegisterCell(i);
case SMESH_Actor::eLength: return "eLength";
case SMESH_Actor::eLength2D: return "eLength2D";
case SMESH_Actor::eFreeEdges: return "eFreeEdges";
+ case SMESH_Actor::eFreeNodes: return "eFreeNodes";
case SMESH_Actor::eFreeBorders: return "eFreeBorders";
case SMESH_Actor::eFreeFaces: return "eFreeFaces";
case SMESH_Actor::eMultiConnection: return "eMultiConnection";