public void DrawViewportWires(GH_PreviewWireArgs args)
        {
            //ClippingBox
            //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black);
            if (!_cplCond.isValid)
            {
                updateECoupling();
            }

            System.Drawing.Color col = args.Color;
            if (!DrawUtil.CheckSelection(col))
            {
                col = System.Drawing.Color.DarkViolet;
            }
            else
            {
                _cplCond.DrawInfo(args);
            }

            _cplCond.Draw(args.Pipeline, col);

            /*
             * if (Value.IsACurve)
             * args.Pipeline.DrawCurve(Value.CurveA, col, args.Thickness + 1);
             * else
             * args.Pipeline.DrawPoint(Value.PointA.Location, Rhino.Display.PointStyle.X, 5, col);
             * if (Value.IsBCurve)
             * args.Pipeline.DrawCurve(Value.CurveB, col, args.Thickness + 1);
             * else
             * args.Pipeline.DrawPoint(Value.PointB.Location, Rhino.Display.PointStyle.X, 5, col);
             */
        }
Exemple #2
0
        public void DrawViewportWires(GH_PreviewWireArgs args)
        {
            //ClippingBox
            //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black);
            if (!_cplCond.isValid)
            {
                updateECoupling();
            }

            System.Drawing.Color col = args.Color;
            if (!DrawUtil.CheckSelection(col))
            {
                col = System.Drawing.Color.DarkViolet;
            }
            else
            {
                _cplCond.DrawInfo(args);
            }

            _cplCond.Draw(args.Pipeline, col);
        }