Пример #1
0
        public Model3D()
            : base(String.Empty)
        {
            bones = new Collection<Bone>();
            joints = new Collection<Joint>();
            scene = null;
            animation = null;
            content = new Model3DGroup();

            isInitialized = false;
            hasAnimation = false;

            Initialize();
        }
Пример #2
0
        public Model3D(string fullpath, KineapScene kineapScene)
            : base(fullpath) //: this (fullpath, kineapScene.Scene)
        {
            this.scene = kineapScene.Scene;
            this.kineapScene = kineapScene;
            /*
            if (Name.Contains(".mkmdl"))
            {
                int start = Name.IndexOf(".mkmdl");
                Name = Name.Remove(start, 6);
            }
            */
            bones = new Collection<Bone>();
            joints = new Collection<Joint>();
            content = new Model3DGroup();

            isInitialized = false;
            if (scene != null && scene.HasAnimations)
            {
                hasAnimation = true;
                animation = new Animation(scene.Animations[0]);
            }
            else
            {
                hasAnimation = false;
                animation = null;
            }

            Initialize();
        }