Skip to content

Commit

Permalink
docs and template
Browse files Browse the repository at this point in the history
  • Loading branch information
DomCR committed Mar 29, 2022
1 parent 2e70ddd commit b60528b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions MeshIO.STL/StlReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

namespace MeshIO.STL
{
/// <summary>
/// Reader for STL files in ascii or binary
/// </summary>
public class StlReader : ReaderBase, IDisposable
{
private StreamIO _stream;
Expand Down Expand Up @@ -47,6 +50,10 @@ public StlReader(Stream stream, NotificationHandler onNotification = null)
this.OnNotification = onNotification;
}

/// <summary>
/// Check the format of the file
/// </summary>
/// <returns>true if is binary</returns>
public bool IsBinary()
{
this._stream.Position = 0;
Expand All @@ -56,6 +63,10 @@ public bool IsBinary()
return checkStreamLenth(nTriangles);
}

/// <summary>
/// Read the STL file
/// </summary>
/// <returns>mesh defined in the file</returns>
public Mesh Read()
{
this._stream.Position = 0;
Expand Down
7 changes: 7 additions & 0 deletions MeshIO.STL/StlWriter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace MeshIO.STL
{
public class StlWriter
{

}
}

0 comments on commit b60528b

Please sign in to comment.