/// <summary> /// Exports to COLLADA. /// </summary> /// <param name="view">The view.</param> /// <param name="fileName">Name of the file.</param> private static void ExportCollada(Viewport3D view, string fileName) { using (var e = new ColladaExporter(fileName)) { e.Export(view); } }
/// <summary> /// Exports to a COLLADA file. /// </summary> /// <param name="view">The viewport.</param> /// <param name="fileName">Name of the file.</param> private static void ExportCollada(this Viewport3D view, string fileName) { var e = new ColladaExporter(); using (var stream = File.Create(fileName)) { e.Export(view, stream); } }
public void Export_SimpleModel_ValidOutput() { string path = "temp.dae"; using (var e = new ColladaExporter(path)) { ExportSimpleModel(e); } var result = this.Validate(path); Assert.IsNull(result, result); }
public void Export_SimpleModel_ValidOutput() { string path = "temp.dae"; var e = new ColladaExporter(); using (var stream = File.Create(path)) { this.ExportSimpleModel(e, stream); } var result = this.Validate(path); Assert.IsNull(result, result); }