mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 15:13:58 -06:00
Fix crash caused by boost log trivial on mac
This commit is contained in:
parent
8295f81685
commit
aa2d8915ef
1 changed files with 1 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
||||||
#include "Exception.hpp"
|
#include "Exception.hpp"
|
||||||
#include "MeshBoolean.hpp"
|
#include "MeshBoolean.hpp"
|
||||||
#include "libslic3r/TriangleMesh.hpp"
|
#include "libslic3r/TriangleMesh.hpp"
|
||||||
#include "boost/log/trivial.hpp"
|
|
||||||
#undef PI
|
#undef PI
|
||||||
|
|
||||||
// Include igl first. It defines "L" macro which then clashes with our localization
|
// Include igl first. It defines "L" macro which then clashes with our localization
|
||||||
|
@ -160,11 +159,8 @@ template<class _Mesh> TriangleMesh cgal_to_triangle_mesh(const _Mesh &cgalmesh)
|
||||||
facet(i++) = v;
|
facet(i++) = v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i == 3) {
|
if (i == 3)
|
||||||
facets.emplace_back(facet);
|
facets.emplace_back(facet);
|
||||||
} else {
|
|
||||||
BOOST_LOG_TRIVIAL(error) << "CGAL face is not a triangle.";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TriangleMesh out{points, facets};
|
TriangleMesh out{points, facets};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue