if ( !myAISLineM.IsNull() )
{
-// if ( aCtx->HasOpenedContext() )
-// aCtx->CloseLocalContext();
aCtx->Erase( myAISLineM, Standard_False );
}
}
aCtx->SetZLayer(myAISLineM, Graphic3d_ZLayerId_Topmost);
-// if ( aCtx->HasOpenedContext() )
-// aCtx->CloseLocalContext();
aCtx->Display( myAISLineM, Standard_False );
aCtx->UpdateCurrentViewer();
}
Handle(AIS_InteractiveContext) aCtx = aViewer->getAISContext();
if ( !aCtx.IsNull() )
{
-// if ( aCtx->HasOpenedContext() )
-// aCtx->CloseLocalContext();
aCtx->Erase( myAISLineM, Standard_False );
}
myAISLineM.Nullify();