{
if ( myActor ){
myActor->SetPointRepresentation(true);
- myActor->SetEntityMode(SMESH_Actor::eVolumes);
- myActor->SetRepresentation(SMESH_Actor::eSurface);
}
else
SMESH::SetPointRepresentation(true);
{
if( myActor ){
myActor->SetPointRepresentation(false);
- myActor->SetEntityMode(SMESH_Actor::eFaces);
- myActor->SetEntityMode(SMESH_Actor::eVolumes);
- myActor->SetRepresentation(SMESH_Actor::eSurface);
} else {
SMESH::SetPointRepresentation(false);
}
//SALOME_ListIO aList;
//mySelectionMgr->setSelectedObjects( aList );
- mySimulation->SetVisibility(false);
SMESH::UpdateView();
+ if( myActor ){
+ unsigned int anEntityMode = myActor->GetEntityMode();
+ myActor->SetEntityMode(SMESH_Actor::eVolumes | anEntityMode);
+ }
ConstructorsClicked( GetConstructorId() );
busy = false;
}
SMESH::TPolySimulation::TVTKIds aVTKIds;
vtkIdType aType = VTK_CONVEX_POINT_SET ;
if (GetConstructorId() == 0){
- if(!Preview->isChecked()) myActor->SetEntityMode(SMESH_Actor::eFaces);
- else myActor->SetEntityMode(SMESH_Actor::eVolumes);
if (!AddButton->isEnabled()){
QListBoxItem* anItem;
mySimulation->ResetGrid(true);
} else {
// add ids from edit line
QStringList anEditIds = QStringList::split( " ", myEditCurrentArgument->text(), false);
- myActor->SetEntityMode(SMESH_Actor::eFaces);
for ( int i = 0; i < anEditIds.count(); i++ )
aVTKIds.push_back( myActor->GetObject()->GetNodeVTKId( anEditIds[ i ].toInt() ));
aType = VTK_POLYGON;
SMDS_Mesh* aMesh = 0;
if ( myActor ){
aMesh = myActor->GetObject()->GetMesh();
- if (Preview->isChecked())
- myActor->SetEntityMode(SMESH_Actor::eVolumes);
- else
- myActor->SetEntityMode(SMESH_Actor::eFaces);
}
if ( aMesh ) {
QStringList aListId = QStringList::split( " ", myEditCurrentArgument->text(), false);