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_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;
} }
} }