//-------------------------------------------------------------------------------------------------- public void InitAisContext() { if (V3dViewer == null) { InitV3dViewer(); } if (AisContext == null) { AisContext = new AIS_InteractiveContext(V3dViewer); AisContext.UpdateCurrentViewer(); } AisContext.SetAutoActivateSelection(true); AisContext.SetPickingStrategy(SelectMgr_PickingStrategy.SelectMgr_PickingStrategy_OnlyTopmost); AisContext.SetDisplayMode((int)AIS_DisplayMode.AIS_Shaded, false); V3dViewer.DisplayPrivilegedPlane(true, 1.0); AisContext.EnableDrawHiddenLine(); // Reinit ais parameters _ApplyWorkingContext(); AisContext?.SetPixelTolerance(2); var drawer = AisContext.DefaultDrawer(); drawer.SetWireAspect(new Prs3d_LineAspect(Colors.Selection, Aspect_TypeOfLine.Aspect_TOL_SOLID, 1.0)); //drawer.SetTypeOfHLR(Prs3d_TypeOfHLR.Prs3d_TOH_Algo); drawer.SetTypeOfHLR(Prs3d_TypeOfHLR.Prs3d_TOH_PolyAlgo); }