Example #1
0
        public void CreateObject(IEnumerable <Vector3> points, string contextName)
        {
            var box = BoundingBox.CreateFromPoints(points);

            if (_bounds.ContainsKey(contextName))
            {
                _bounds[contextName] = box;
                Log.Info("Object updated");
                return;
            }

            _bounds.Add(contextName, box);

            FileLoader.SaveObject("livingRoom.obj", box.GetCorners(), contextName);

            Log.Info("Object added: " + contextName);
        }