mirror of
https://github.com/AssetRipper/MeshSharp.git
synced 2026-11-13 12:41:28 -10:00
27 lines
573 B
C#
27 lines
573 B
C#
using AssetRipper.MeshSharp.Elements;
|
|
using AssetRipper.MeshSharp.STL.Readers;
|
|
using System.IO;
|
|
|
|
namespace AssetRipper.MeshSharp.STL
|
|
{
|
|
public static class StlReader
|
|
{
|
|
public static Scene ReadAscii(string path)
|
|
{
|
|
return new StlAsciiReader(path).Read();
|
|
}
|
|
public static Scene ReadAscii(Stream stream)
|
|
{
|
|
return new StlAsciiReader(stream).Read();
|
|
}
|
|
public static Scene ReadBinary(string path)
|
|
{
|
|
return new StlBinaryReader(path).Read();
|
|
}
|
|
public static Scene ReadBinary(Stream stream)
|
|
{
|
|
return new StlBinaryReader(stream).Read();
|
|
}
|
|
}
|
|
}
|