LoadDocument() public static method

public static LoadDocument ( String filename ) : XmlDocument
filename String
return System.Xml.XmlDocument
Example #1
0
        public static void Init(TestContext context)
        {
            // Loads COLLADA document for testing
            XmlDocument apcDocument = TestBase.LoadDocument("APC_animation.DAE");

            // Requires geometry to create mesh instances
            GeometryImporter geometryImporter = new GeometryImporter();

            geometryImporter.Import(apcDocument.DocumentElement, apcModel);

            SceneImporter importer = new SceneImporter();

            importer.Import(apcDocument.DocumentElement, apcModel);
        }
Example #2
0
        public static void Init(TestContext context)
        {
            // Loads COLLADA document for testing
            XmlDocument apcDocument = TestBase.LoadDocument("APC_animation.DAE");
            XmlDocument boxDocument = TestBase.LoadDocument("vertex-painted-box.dae");

            // Geometry Importer needs skeleton data (joints) for joint weight & index streams
            SkeletonImporter skeletonImporter = new SkeletonImporter();

            skeletonImporter.Import(apcDocument.DocumentElement, apcModel);
            skeletonImporter.Import(boxDocument.DocumentElement, boxModel);

            // Import actual geometry
            GeometryImporter importer = new GeometryImporter();

            importer.Import(apcDocument.DocumentElement, apcModel);
            importer.Import(boxDocument.DocumentElement, boxModel);
        }