Example #1
0
        public virtual Visual3D GetVisual(Motion6D.Camera camera)
        {
            Visual3D v3d = Visual;

            visuals[camera] = v3d;
            if (!scaled)
            {
                return(v3d);
            }
            double sc = camera.Scale;

            if (sc == 1)
            {
                return(v3d);
            }
            v3d.Multiply(sc);
            return(v3d);
        }
Example #2
0
        static Visual3D GetVisual3D(string filename)
        {
            FormScale f = new FormScale();

            f.ShowDialog();
            double sc = f.Scale;
            Dictionary <string, Visual3D> d = filename.ColladaToVisual3D();

            foreach (string key in d.Keys)
            {
                Visual3D v = d[key];
                if (sc != 1)
                {
                    v.Multiply(sc);
                }
                return(v);
            }
            return(null);
        }