Skip to content

Commit

Permalink
Merge branch 'hotfix-0.1.2' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ipadjen committed Sep 13, 2022
2 parents 11ed80f + c6ffc19 commit 224d611
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Changelog

## [0.1.2] - 2022-09-13
### Improved
- Bad triangles handling

## [0.1.1] - 2022-09-02
### Fixed
- Bad triangles at surface edges
- Polygons close to the boundary are defined as 'out of bounds'


## [0.1.0] - 2022-08-14
First release
8 changes: 4 additions & 4 deletions src/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,12 @@ bool IO::is_degen(const Mesh& mesh, Mesh::Face_index face) {
pts.push_back(mesh.point(index));
}
//-- Precondition - check that the points are not the same
if (CGAL::squared_distance(pts[0], pts[1]) < 1e-3 ||
CGAL::squared_distance(pts[0], pts[2]) < 1e-3 ||
CGAL::squared_distance(pts[1], pts[2]) < 1e-3) {
if (CGAL::squared_distance(pts[0], pts[1]) < 1e-6 ||
CGAL::squared_distance(pts[0], pts[2]) < 1e-6 ||
CGAL::squared_distance(pts[1], pts[2]) < 1e-6) {
return true;
}
if (sin(CGAL::approximate_angle(pts[0], pts[1], pts[2]) * M_PI / 180) < 0.00174) {
if (sin(CGAL::approximate_angle(pts[0], pts[1], pts[2]) * M_PI / 180) < 0.000174) {
return true;
}
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "io.h"
#include "Map3d.h"

std::string CITY4CFD_VERSION = "0.1.1";
std::string CITY4CFD_VERSION = "0.1.2";

void printWelcome() {
auto logo{
Expand Down

0 comments on commit 224d611

Please sign in to comment.