Skip to content

Commit 946fb93

Browse files
committed
Ability to force trying to read as binary if zero facet read as text + xml comment
1 parent 5302b07 commit 946fb93

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Source/STL/STLDocument.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ public static bool IsBinary(Stream stream)
146146
/// <summary>Reads the <see cref="STLDocument"/> contained within the <paramref name="stream"/> into a new <see cref="STLDocument"/>.</summary>
147147
/// <remarks>This method will determine how to read the <see cref="STLDocument"/> (whether to read it as text or binary data).</remarks>
148148
/// <param name="stream">The stream which contains the STL data.</param>
149+
/// <param name="tryBinaryIfTextFailed">Set to true to try read as binary if reading as text results in zero facets</param>
149150
/// <returns>An <see cref="STLDocument"/> representing the data contained in the stream or null if the stream is empty.</returns>
150151
public static STLDocument Read(Stream stream,bool tryBinaryIfTextFailed=false)
151152
{

0 commit comments

Comments
 (0)