/[gr2lib]/trunk/gr2lib_UnitTest/Program.cs
ViewVC logotype

Diff of /trunk/gr2lib_UnitTest/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/gr2lib_UnitTest/Program.cs	2010/07/15 22:18:29	81
+++ trunk/gr2lib_UnitTest/Program.cs	2010/07/16 21:26:08	83
@@ -67,8 +67,8 @@
 
                     #region Read FromFileName
                     Console.WriteLine();
-                    Console.WriteLine("From File Name: ");
-                    Console.WriteLine("\t" + info.FromFileName);
+                    Console.WriteLine("From File Name: " + info.FromFileName);
+                    Console.WriteLine("ExtendedData: " + info.ExtendedData);
                     #endregion
 
                     #region Read ArtToolInfo
@@ -78,10 +78,10 @@
                     Console.WriteLine("\tTool Version: " + string.Format("{0}.{1}", info.ArtToolInfo.ArtToolMajorRevision, info.ArtToolInfo.ArtToolMinorRevision));
                     Console.WriteLine("\tTool Units Per Meter: " + info.ArtToolInfo.UnitsPerMeter);
 
-                    Console.WriteLine("\tTool Origin: " + string.Format("[{0},{1},{2}]", info.ArtToolInfo.Origin.X, info.ArtToolInfo.Origin.Y, info.ArtToolInfo.Origin.Z));
-                    Console.WriteLine("\tTool Right: " + string.Format("[{0},{1},{2}]", info.ArtToolInfo.Right.X, info.ArtToolInfo.Right.Y, info.ArtToolInfo.Right.Z));
-                    Console.WriteLine("\tTool Up: " + string.Format("[{0},{1},{2}]", info.ArtToolInfo.Up.X, info.ArtToolInfo.Up.Y, info.ArtToolInfo.Up.Z));
-                    Console.WriteLine("\tTool Back: " + string.Format("[{0},{1},{2}]", info.ArtToolInfo.Back.X, info.ArtToolInfo.Back.Y, info.ArtToolInfo.Back.Z));
+                    Console.WriteLine("\tTool Origin: " + string.Format("[{0},{1},{2}]", info.ArtToolInfo.Origin.x, info.ArtToolInfo.Origin.y, info.ArtToolInfo.Origin.z));
+                    Console.WriteLine("\tTool Right: " + string.Format("[{0},{1},{2}]", info.ArtToolInfo.Right.x, info.ArtToolInfo.Right.y, info.ArtToolInfo.Right.z));
+                    Console.WriteLine("\tTool Up: " + string.Format("[{0},{1},{2}]", info.ArtToolInfo.Up.x, info.ArtToolInfo.Up.y, info.ArtToolInfo.Up.z));
+                    Console.WriteLine("\tTool Back: " + string.Format("[{0},{1},{2}]", info.ArtToolInfo.Back.x, info.ArtToolInfo.Back.y, info.ArtToolInfo.Back.z));
 
                     Console.WriteLine("\tTool ExtendedData: " + info.ArtToolInfo.ExtendedData);
                     #endregion
@@ -164,6 +164,30 @@
                         Console.WriteLine();
                     }
                     #endregion
+
+
+                    #region Read Skeletons
+                    Console.WriteLine();
+                    Console.WriteLine("Skeleton List:");
+                    foreach (Skeleton s in info.Skeletons)
+                    {
+                        Console.WriteLine("\tSkeleton Name: " + s.SkeletonName);
+                        Console.WriteLine("\tSkeleton LodType: " + s.LodType);
+                        Console.WriteLine("\tBones:");
+                        foreach (Bone b in s.Bones)
+                        {
+                            Console.WriteLine("\t\tName: " + b.BoneName);
+                            Console.WriteLine("\t\tParent Index: " + b.ParentIndex);
+                            Console.WriteLine("\t\tLod Error: " + b.LodError);
+                            Console.WriteLine("\t\tTransform: " + b.Transform.ToString());
+                            if (b.HasLightInfo) { Console.WriteLine("\t\tLightInfo ExtendedData: " + b.LightInfo.ExtendedData); }
+                            if (b.HasCameraInfo) { Console.WriteLine("\t\tCameraInfo ExtendedData: " + b.CameraInfo.ExtendedData); }
+                            Console.WriteLine();
+                        }
+                        Console.WriteLine("\t\tExtendedData: " + s.ExtendedData);
+                        Console.WriteLine();
+                    }
+                    #endregion
                 }
                 #endregion
 
@@ -176,6 +200,10 @@
             {
                 Console.WriteLine(ex.Message);
             }
+            catch
+            {
+                Console.WriteLine("Unknown Error");
+            }
         }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22