1.1 描述
通過改過互動管理AIS_InteractiveObject對象的狀态,改變目前使用者操作的拓撲對象的選擇模式。
1.2 頂點Vertex選擇模式
context.CloseAllContexts(true);
context.OpenLocalContext(true, true, false, false);
context.ActivateStandardMode(OCTopAbs_ShapeEnum.TopAbs_VERTEX);
1.3 邊Edge選擇模式
context.CloseAllContexts(true);
context.OpenLocalContext(true, true, false, false);
context.ActivateStandardMode(OCTopAbs_ShapeEnum.TopAbs_EDGE);
1.4 面Face選擇模式
context.CloseAllContexts(true);
context.OpenLocalContext(true, true, false, false);
context.ActivateStandardMode(OCTopAbs_ShapeEnum.TopAbs_FACE);
1.5 預設選擇模式
context.CloseAllContexts(true);