mirror of
https://github.com/AssetRipper/MeshSharp.git
synced 2026-11-13 12:41:28 -10:00
27 lines
621 B
C#
27 lines
621 B
C#
using AssetRipper.MeshSharp.Elements;
|
|
using AssetRipper.MeshSharp.STL.Writers;
|
|
using System.IO;
|
|
|
|
namespace AssetRipper.MeshSharp.STL
|
|
{
|
|
public static class StlWriter
|
|
{
|
|
public static void WriteAscii(string path, Scene scene)
|
|
{
|
|
new StlAsciiWriter(path).Write(scene);
|
|
}
|
|
public static void WriteAscii(Stream stream, Scene scene)
|
|
{
|
|
new StlAsciiWriter(stream).Write(scene);
|
|
}
|
|
public static void WriteBinary(string path, Scene scene)
|
|
{
|
|
new StlBinaryWriter(path).Write(scene);
|
|
}
|
|
public static void WriteBinary(Stream stream, Scene scene)
|
|
{
|
|
new StlBinaryWriter(stream).Write(scene);
|
|
}
|
|
}
|
|
}
|