mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Fix win build
This commit is contained in:
@@ -236,7 +236,7 @@ void GLGizmoFlatten::update_planes()
|
|||||||
discard = true;
|
discard = true;
|
||||||
else {
|
else {
|
||||||
// We also check the inner angles and discard polygons with angles smaller than the following threshold
|
// We also check the inner angles and discard polygons with angles smaller than the following threshold
|
||||||
constexpr double angle_threshold = ::cos(10.0 * (double)PI / 180.0);
|
const double angle_threshold = ::cos(10.0 * (double)PI / 180.0);
|
||||||
|
|
||||||
for (unsigned int i = 0; i < polygon.size(); ++i) {
|
for (unsigned int i = 0; i < polygon.size(); ++i) {
|
||||||
const Vec3d& prec = polygon[(i == 0) ? polygon.size() - 1 : i - 1];
|
const Vec3d& prec = polygon[(i == 0) ? polygon.size() - 1 : i - 1];
|
||||||
|
|||||||
Reference in New Issue
Block a user