Inheritance: ISWGFile
 public ColladaMeshExporter(IRepository repository, MeshFile meshFile, ExportDDSToPngFileDelegate exportDDSToPngFile = null)
 {
     Repository = repository;
     MeshFile = meshFile;
     ExportDDSToPngFile = exportDDSToPngFile ?? DefaultExportDDSToPngFileDelegate;
     TNS = TemplateNameSpace;
 }
Beispiel #2
0
 public static void ToString(this MeshFile meshFile, TextWriter writer)
 {
     writer.WriteLine("Geometries.Count: {0}", meshFile.Geometries.Count());
     for (int i = 0; i < meshFile.Geometries.Count(); i++)
     {
         var geometry = meshFile.Geometries.ElementAt(i);
         writer.WriteLine("{0}:", i);
         ToString(geometry, writer);
     }
 }