123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- //Auto-generated: Do not modify this file!
- using System.Collections;
- using System.Collections.Generic;
- using TriLibCore.Fbx.Reader;
- using TriLibCore.Gltf;
- using TriLibCore.Obj.Reader;
- using TriLibCore.Ply.Reader;
- using TriLibCore.Stl.Reader;
- using TriLibCore.ThreeMf.Reader;
- namespace TriLibCore
- {
- public class Readers
- {
- public static IList<string> Extensions
- {
- get
- {
- var extensions = new List<string>();
- extensions.AddRange(StlReader.GetExtensions());
- extensions.AddRange(ObjReader.GetExtensions());
- extensions.AddRange(FbxReader.GetExtensions());
- extensions.AddRange(GltfReader.GetExtensions());
- extensions.AddRange(PlyReader.GetExtensions());
- extensions.AddRange(ThreeMfReader.GetExtensions());
- return extensions;
- }
- }
- public static ReaderBase FindReaderForExtension(string extension)
- {
-
- if (((IList) StlReader.GetExtensions()).Contains(extension))
- {
- return new StlReader();
- }
- if (((IList) ObjReader.GetExtensions()).Contains(extension))
- {
- return new ObjReader();
- }
- if (((IList) FbxReader.GetExtensions()).Contains(extension))
- {
- return new FbxReader();
- }
- if (((IList) GltfReader.GetExtensions()).Contains(extension))
- {
- return new GltfReader();
- }
- if (((IList)PlyReader.GetExtensions()).Contains(extension))
- {
- return new PlyReader();
- }
- if (((IList)ThreeMfReader.GetExtensions()).Contains(extension))
- {
- return new ThreeMfReader();
- }
- return null;
- }
- }
- }
|