mirror of
https://github.com/AssetRipper/MeshSharp.git
synced 2026-11-13 20:05:49 -10:00
23 lines
504 B
C#
23 lines
504 B
C#
using System;
|
|
|
|
namespace AssetRipper.MeshSharp.PLY
|
|
{
|
|
internal enum PlyFileFormat
|
|
{
|
|
Ascii,
|
|
BinaryLittleEndian,
|
|
BinaryBigEndian,
|
|
}
|
|
|
|
internal static class PlyFileFormatExtensions
|
|
{
|
|
public static string ToFileString(this PlyFileFormat format) => format switch
|
|
{
|
|
PlyFileFormat.Ascii => "ascii",
|
|
PlyFileFormat.BinaryLittleEndian => "binary_little_endian",
|
|
PlyFileFormat.BinaryBigEndian => "binary_big_endian",
|
|
_ => throw new ArgumentOutOfRangeException(nameof(format)),
|
|
};
|
|
}
|
|
}
|