Corrected by vsv for bug PAL13610.

This commit is contained in:
skl 2006-10-25 13:04:41 +00:00
parent d8b8dfd4b8
commit 7e8d7ff73d

View File

@ -66,6 +66,7 @@
#include <AIS_ListOfInteractive.hxx>
#include <AIS_ListIteratorOfListOfInteractive.hxx>
#include <AIS_Drawer.hxx>
#include <BRepTools.hxx>
// IDL Headers
#include <SALOMEconfig.h>
@ -613,13 +614,13 @@ void GEOM_Swig::setDeflection(const char* theEntry, float theDeflect)
if ((!aObj.IsNull()) && aObj->hasEntry() && aObj->isSame(anIO)) {
Handle(AIS_Shape) aShape = Handle(AIS_Shape)::DownCast(it.Value());
if (!aShape.IsNull()) {
Handle(AIS_Drawer) aDrawer = aShape->Attributes();
if (aDrawer.IsNull())
aDrawer = new AIS_Drawer();
aDrawer->SetDeviationCoefficient(myParam);
aShape->SetAttributes(aDrawer);
aContext->Redisplay(aShape, true, true);
aContext->UpdateCurrentViewer();
TopoDS_Shape aSh = aShape->Shape();
if (!aSh.IsNull())
BRepTools::Clean(aSh);
aShape->SetOwnDeviationCoefficient( myParam );
aShape->SetOwnHLRDeviationAngle( 1.57 );
aContext->Redisplay(aShape);
return;
}
}