示例#1
0
        Vector3 GetSelectedShape(int cx, int cy)
        {
            Renderer rv = GetRenderer();

            PickHelper ph = new PickHelper();

            ph.Initialize(rv);
            if (!ph.Pick(cx, cy))
            {
                return(null);
            }

            return(ph.GetPointOnShape());
        }
        Vector3 GetPointOnShape(int cx, int cy)
        {
            Platform.Vector3 hitPoint = null;
            Renderer rv = GetRenderer();

            PickHelper pickHelper = new PickHelper();
            pickHelper.Initialize(rv);

            if (pickHelper.Pick(cx, cy))
            {
                hitPoint = pickHelper.GetPointOnShape();
            }

            return hitPoint;
        }
示例#3
0
        Vector3 GetPointOnShape(int cx, int cy)
        {
            Platform.Vector3 hitPoint = null;
            Renderer         rv       = GetRenderer();

            PickHelper pickHelper = new PickHelper();

            pickHelper.Initialize(rv);

            if (pickHelper.Pick(cx, cy))
            {
                hitPoint = pickHelper.GetPointOnShape();
            }

            return(hitPoint);
        }