/// <summary> /// Import all of the default scene of a GLTF file, parenting it as specified. /// </summary> /// <param name="fmd">Diesel model to add the contents to.</param> /// <param name="path">Path of the GLTF file to import</param> /// <param name="getParentByName">Callback to find the parent of a particular model.</param> public static void Import(FullModelData fmd, string path, bool createModels, Func <string, DM.Object3D> parentFinder, IOptionReceiver _) { var gltf = GLTF.ModelRoot.Load(path); var importer = new GltfImporter(fmd); importer.ImportTree(gltf, createModels, parentFinder); }
public override void Import(FullModelData data, string path, bool createModels, Func <string, Sections.Object3D> parentFinder, IOptionReceiver options) => GltfImporter.Import(data, path, createModels, parentFinder, options);
public abstract void Import(FullModelData data, string path, bool createModels, Func <string, Sections.Object3D> parentFinder, IOptionReceiver options);
public override void Import(FullModelData data, string path, bool createModels, Func <string, Sections.Object3D> parentFinder, IOptionReceiver options) => throw new Exception("Importing DAE files is not supported.");
public override void Import(FullModelData data, string path, bool createModels, Func <string, Sections.Object3D> parentFinder, IOptionReceiver options) => throw new Exception("Please import animation files in the animation section.");