mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 01:10:35 +05:00
Small hack to update the mesh representation after succeded mesh creation in the case the first call to mesh creation failed.
This commit is contained in:
parent
483e992a6d
commit
7ce6e80025
@ -120,6 +120,7 @@ SMESH_ActorDef::SMESH_ActorDef()
|
|||||||
myIsPointsVisible = false;
|
myIsPointsVisible = false;
|
||||||
myIsEntityModeCache = false;
|
myIsEntityModeCache = false;
|
||||||
myRepresentationCache = 0;
|
myRepresentationCache = 0;
|
||||||
|
objectEntitiesCache = 0;
|
||||||
|
|
||||||
myHighlightActor = SMESH_SVTKActor::New();
|
myHighlightActor = SMESH_SVTKActor::New();
|
||||||
myHighlightActor->Delete(); // vtkSmartPointer!
|
myHighlightActor->Delete(); // vtkSmartPointer!
|
||||||
@ -1647,6 +1648,12 @@ void SMESH_ActorDef::SetEntityMode(unsigned int theMode)
|
|||||||
SetRepresentation( ePoint );
|
SetRepresentation( ePoint );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( anObjectEntities != 0 && objectEntitiesCache == 0 )
|
||||||
|
{
|
||||||
|
objectEntitiesCache = anObjectEntities;
|
||||||
|
SetRepresentation( eSurface );
|
||||||
|
}
|
||||||
|
|
||||||
if ( myEntityMode != theMode )
|
if ( myEntityMode != theMode )
|
||||||
{
|
{
|
||||||
myEntityMode = theMode; // entities to show
|
myEntityMode = theMode; // entities to show
|
||||||
|
@ -296,6 +296,7 @@ class SMESH_ActorDef : public SMESH_Actor
|
|||||||
|
|
||||||
unsigned int myEntityMode;
|
unsigned int myEntityMode;
|
||||||
unsigned int myEntityModeCache;
|
unsigned int myEntityModeCache;
|
||||||
|
unsigned int objectEntitiesCache;
|
||||||
int myRepresentationCache;
|
int myRepresentationCache;
|
||||||
bool myIsEntityModeCache;
|
bool myIsEntityModeCache;
|
||||||
bool myIsPointsVisible;
|
bool myIsPointsVisible;
|
||||||
|
Loading…
Reference in New Issue
Block a user