mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 01:32:05 +05:00
Corrected by vsv for bug PAL13610.
This commit is contained in:
parent
d8b8dfd4b8
commit
7e8d7ff73d
@ -66,6 +66,7 @@
|
|||||||
#include <AIS_ListOfInteractive.hxx>
|
#include <AIS_ListOfInteractive.hxx>
|
||||||
#include <AIS_ListIteratorOfListOfInteractive.hxx>
|
#include <AIS_ListIteratorOfListOfInteractive.hxx>
|
||||||
#include <AIS_Drawer.hxx>
|
#include <AIS_Drawer.hxx>
|
||||||
|
#include <BRepTools.hxx>
|
||||||
|
|
||||||
// IDL Headers
|
// IDL Headers
|
||||||
#include <SALOMEconfig.h>
|
#include <SALOMEconfig.h>
|
||||||
@ -613,13 +614,13 @@ void GEOM_Swig::setDeflection(const char* theEntry, float theDeflect)
|
|||||||
if ((!aObj.IsNull()) && aObj->hasEntry() && aObj->isSame(anIO)) {
|
if ((!aObj.IsNull()) && aObj->hasEntry() && aObj->isSame(anIO)) {
|
||||||
Handle(AIS_Shape) aShape = Handle(AIS_Shape)::DownCast(it.Value());
|
Handle(AIS_Shape) aShape = Handle(AIS_Shape)::DownCast(it.Value());
|
||||||
if (!aShape.IsNull()) {
|
if (!aShape.IsNull()) {
|
||||||
Handle(AIS_Drawer) aDrawer = aShape->Attributes();
|
TopoDS_Shape aSh = aShape->Shape();
|
||||||
if (aDrawer.IsNull())
|
if (!aSh.IsNull())
|
||||||
aDrawer = new AIS_Drawer();
|
BRepTools::Clean(aSh);
|
||||||
aDrawer->SetDeviationCoefficient(myParam);
|
|
||||||
aShape->SetAttributes(aDrawer);
|
aShape->SetOwnDeviationCoefficient( myParam );
|
||||||
aContext->Redisplay(aShape, true, true);
|
aShape->SetOwnHLRDeviationAngle( 1.57 );
|
||||||
aContext->UpdateCurrentViewer();
|
aContext->Redisplay(aShape);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user