#include "VISU_IDMapper.hxx"
#include "VISU_GaussPointsPL.hxx"
+#include "VISU_ConvertorUtils.hxx"
#include "SUIT_MessageBox.h"
#include "SUIT_ResourceMgr.h"
TFindId anId( -1, -1 );
if( mySelectionMode == NodeSelection )
- anId.first = myActor->GetNodeObjId( aVTKId );
+ anId.first = VISU::GetNodeObjID( aDataSet, aVTKId );
else if( mySelectionMode == CellSelection )
- anId.first = myActor->GetElemObjId( aVTKId );
+ anId.first = VISU::GetElemObjID( aDataSet, aVTKId );
else if( mySelectionMode == GaussPointSelection )
{
if( VISU_GaussPtsAct* aGaussPtsAct = dynamic_cast<VISU_GaussPtsAct*>( myActor ) )
{
- VISU::TGaussPointID aGaussPointID = aGaussPtsAct->GetGaussPointsPL()->GetObjID( aVTKId + 1 );
+ VISU::TGaussPointID aGaussPointID = aGaussPtsAct->GetGaussPointsPL()->GetObjID( aVTKId );
anId.first = aGaussPointID.first;
anId.second = aGaussPointID.second;
}
}
+ //printf( "(%d) <%d - %d> %f\n", aVTKId, anId.first, anId.second, aValue );
if( anId.first < 0 ||
anId.second < 0 && mySelectionMode == GaussPointSelection )