mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-25 06:22:04 +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_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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user