示例#1
0
        private void ShowOriginalLocation(int index, VIZCore3D.NET.Data.Object3DProperty prop, VIZCore3D.NET.Data.Vector3D v)
        {
            List <Color> color = new List <Color>();

            color.Add(Color.FromArgb(10, 255, 0, 0));
            color.Add(Color.FromArgb(10, 0, 255, 0));
            color.Add(Color.FromArgb(10, 0, 0, 255));

            vizcore3d.SelectionBox.Add(prop.GetBoundBox(), color[index], Color.FromArgb(100, 255, 255, 255), "");

            VIZCore3D.NET.Data.Vertex3DItemCollection items = new VIZCore3D.NET.Data.Vertex3DItemCollection();
            items.Add(prop.CenterPoint);
            items.Add(prop.CenterPoint + v.ToVertex3D());

            vizcore3d.ShapeDrawing.AddLine(
                new List <Data.Vertex3DItemCollection>()
            {
                items
            }
                , 0
                , Color.Red
                , 5.0f
                , true
                );
        }