public Skeleton ReadSkeleton(string fileName)
        {
            string[] lines = System.IO.File.ReadAllLines(fileName);

            BVHParser parser = new BVHParser();
            parser.parse(lines);

            Skeleton skeleton = new Skeleton();
            skeleton.Name = System.IO.Path.GetFileNameWithoutExtension(fileName);

            BvhBone rootBone = parser.getRootBone();
            Joint rootJoint = new Joint();
            processBone(rootBone, rootJoint);
            skeleton.Root = rootJoint;

            return skeleton;
        }
Exemple #2
0
        public Skeleton ReadSkeleton(string fileName)
        {
            string[] lines = System.IO.File.ReadAllLines(fileName);

            BVHParser parser = new BVHParser();

            parser.parse(lines);

            Skeleton skeleton = new Skeleton();

            skeleton.Name = System.IO.Path.GetFileNameWithoutExtension(fileName);

            BvhBone rootBone  = parser.getRootBone();
            Joint   rootJoint = new Joint();

            processBone(rootBone, rootJoint);
            skeleton.Root = rootJoint;

            return(skeleton);
        }