Пример #1
0
        private void AxRenderControl1_RcMouseClickSelect(object sender, Axi3dRenderEngine._IRenderControlEvents_RcMouseClickSelectEvent e)
        {
            UnHightlightObj();
            ResetSelectedObj();

            var pickResult = e.pickResult;

            if (pickResult.Type == i3dObjectType.i3dObjectRenderPolyline)
            {
                var flpr = pickResult as IRenderPolylinePickResult;
                selectedPolyline = flpr.Polyline;
                selectedPolyline.Highlight(0xFFFF0000);
                prePolyline = selectedPolyline;
            }
            else if (pickResult.Type == i3dObjectType.i3dObjectRenderPoint)
            {
                var res = pickResult as IRenderPointPickResult;
                selectedPoint = res.Point;
                selectedPoint.Highlight(0xFFFF0000);
                prePoint = selectedPoint;
            }
        }
Пример #2
0
 void axRenderControl1_RcMouseClickSelect(object sender, Axi3dRenderEngine._IRenderControlEvents_RcMouseClickSelectEvent e)
 {
     MessageBox.Show(string.Format("拾取到{0}类型的物体", e.pickResult.Type.ToString()));
 }