Ejemplo n.º 1
0
        protected override void OnInitialize()
        {
            Reset();
            Rendering = Graphic.Create(null, null, BoyToolGraphics.GetGraphic());

            //	SelectionTypes = new[] { typeof(DesignFace), typeof(CustomObject) }; bzc
        }
Ejemplo n.º 2
0
        protected override void OnDragMove(System.Drawing.Point cursorPos, Line cursorRay)
        {
            //if (profile == null)
            //    return;

            //Point point;
            //if (!profilePlane.TryIntersectLine(cursorRay, out point))
            //    return; // plane is side-on

            //p += ((double)lastCursorPos.Value.X - cursorPos.X) * cursorScale;
            //q += ((double)lastCursorPos.Value.Y - cursorPos.Y) * cursorScale;

            ////circleAngle += ((double)lastCursorPos.Value.X - cursorPos.X) * cursorScale;

            //inverseOffset = Vector.Create(
            //    ((double)lastCursorPos.Value.X - cursorPos.X) * cursorScale,
            //    ((double)lastCursorPos.Value.Y - cursorPos.Y) * cursorScale,
            //    inverseOffset.Z
            //);

            lastCursorPos = cursorPos;

            //circleAngle = Math.PI / 4;
            Rendering = Graphic.Create(null, null, BoyToolGraphics.GetGraphic());
            //			Rendering = Graphic.Create(null, null, Profile.GetGraphic(p, q, circleAngle, true, inverseOffset));
            //Apply(String.Format("BoyTool"));
        }