mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-14 02:30:33 +05:00
Fix problems with the OpenGL clipping planes.
This commit is contained in:
parent
fad37730ee
commit
6e68fcd497
@ -1313,7 +1313,7 @@ void SMESH_ActorDef::SetShrinkFactor(double theValue){
|
|||||||
Modified();
|
Modified();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SMESH_ActorDef::SetShrink(){
|
void SMESH_ActorDef::SetShrink() {
|
||||||
if(!myIsShrinkable) return;
|
if(!myIsShrinkable) return;
|
||||||
|
|
||||||
myBaseActor->SetShrink();
|
myBaseActor->SetShrink();
|
||||||
@ -2207,7 +2207,10 @@ SMESH_ActorDef::SetOpenGLClippingPlane()
|
|||||||
my3DExtActor->SetPlaneCollection( myPlaneCollection );
|
my3DExtActor->SetPlaneCollection( myPlaneCollection );
|
||||||
my3DExtActor->SetUnstructuredGrid(myVisualObj->GetUnstructuredGrid());
|
my3DExtActor->SetUnstructuredGrid(myVisualObj->GetUnstructuredGrid());
|
||||||
|
|
||||||
Modified();
|
if(IsShrunk())
|
||||||
|
SetShrink();
|
||||||
|
else
|
||||||
|
Modified();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -142,7 +142,6 @@ SMESH_DeviceActor
|
|||||||
if(MYDEBUG) MESSAGE("~SMESH_DeviceActor - "<<this);
|
if(MYDEBUG) MESSAGE("~SMESH_DeviceActor - "<<this);
|
||||||
|
|
||||||
myMapper->Delete();
|
myMapper->Delete();
|
||||||
myPlaneCollection->Delete();
|
|
||||||
|
|
||||||
myProperty->Delete();
|
myProperty->Delete();
|
||||||
|
|
||||||
|
@ -161,7 +161,8 @@ class SMESHOBJECT_EXPORT SMESH_DeviceActor: public vtkLODActor{
|
|||||||
VTKViewer_PolyDataMapper *myMapper;
|
VTKViewer_PolyDataMapper *myMapper;
|
||||||
TVisualObjPtr myVisualObj;
|
TVisualObjPtr myVisualObj;
|
||||||
|
|
||||||
vtkPlaneCollection* myPlaneCollection;
|
vtkSmartPointer<vtkPlaneCollection> myPlaneCollection;
|
||||||
|
|
||||||
vtkProperty *myProperty;
|
vtkProperty *myProperty;
|
||||||
EReperesent myRepresentation;
|
EReperesent myRepresentation;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user