Skip to content

Commit

Permalink
STL export bugfix
Browse files Browse the repository at this point in the history
First empty line can break reading
  • Loading branch information
ipadjen committed Jun 5, 2023
1 parent 86d21bf commit a76678b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.4.1] - 2023-06-05
### Fixed
- STL export bugfix

## [0.4.0] - 2023-05-03
### Added
- (breaking) Support for many polygon formats (through GDAL)
Expand Down
3 changes: 2 additions & 1 deletion src/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,10 @@ void IO::output_stl(const OutputFeaturesPtr& allFeatures) {
of.emplace_back();
of.back().open(Config::get().outputFileName + "_" + Config::get().outputSurfaces[i] + ".stl");
}
of.back() << "\nsolid " << Config::get().outputSurfaces[i];
of.back() << "solid " << Config::get().outputSurfaces[i];
of.back() << fs[i];
of.back() << "\nendsolid " << Config::get().outputSurfaces[i];
if (!Config::get().outputSeparately && i != fs.size() - 1) of.back() << "\n";
}
for (auto& f : of) f.close();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include <boost/algorithm/string/predicate.hpp>

std::string CITY4CFD_VERSION = "0.4.0";
std::string CITY4CFD_VERSION = "0.4.1";

void printWelcome() {
auto logo{
Expand Down

0 comments on commit a76678b

Please sign in to comment.