Skip to content

Commit

Permalink
[LasZip] ReadPoints doesn't close stream
Browse files Browse the repository at this point in the history
  • Loading branch information
aszabo314 committed Mar 14, 2024
1 parent 08154a6 commit 724b0cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 5.3.4
- [LasZip] ReadPoints doesn't close stream

### 5.3.3
- [Obj] added support for normal maps "map_Kn"
- [Obj] added support for emissive color maps "map_Ke"
Expand Down
4 changes: 2 additions & 2 deletions src/Aardvark.Data.Points.LasZip/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static Info ReadInfo(string filename)
public static Info ReadInfo(Stream stream)
{
var reader = new laszip();
reader.open_reader_stream(stream, out _);
reader.open_reader_stream(stream, out _, true);
return ReadInfo(reader);
}

Expand Down Expand Up @@ -153,7 +153,7 @@ public static IEnumerable<Points> ReadPoints(string filename, int numberOfPoints
public static IEnumerable<Points> ReadPoints(Stream stream, int numberOfPointsPerChunk, bool verbose)
{
var reader = new laszip();
reader.open_reader_stream(stream, out _);
reader.open_reader_stream(stream, out _, true);
return ReadPoints(reader, numberOfPointsPerChunk, verbose);
}
/// <summary>
Expand Down

0 comments on commit 724b0cd

Please sign in to comment.