Пример #1
0
        private static void _DrawPoints(IScene3D dc, Landmarks3D lll)
        {
            // ideally this should be half the distance of the two closest points
            // but that's not trivial to calculate.
            var r = 0.25f * lll._GetSize().Length() / (lll.Landmarks.Count + 1);

            foreach (var l in lll._Landmarks)
            {
                dc.DrawSphere(l, r * 2f, Color.White);
            }
        }
Пример #2
0
        public void CopyTo(ref Landmarks3D other)
        {
            if (other == null)
            {
                other = new Landmarks3D();
            }

            other._OnDraw = this._OnDraw;

            other.Name        = this.Name;
            other.CaptureTime = this.CaptureTime;

            other.SetLandmarks(this.Score, this._Landmarks);
            other._Bounds = this._Bounds;
            other._Size   = this._Size;
        }