1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00

cad/openscad: unbreak with boost 1.69

src/CSGTermEvaluator.cc:112:9: error: no viable conversion from 'boost::tribool' to 'bool'
                        bool convex = ps->convexValue();
                             ^        ~~~~~~~~~~~~~~~~~

PR:		232525
This commit is contained in:
Jan Beich 2018-10-22 20:31:36 +00:00
parent 2fd0a6aa5e
commit fa6b684e82
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=482792

View File

@ -0,0 +1,13 @@
https://github.com/openscad/openscad/commit/ce5646179848
--- src/CSGTermEvaluator.cc.orig 2015-03-09 05:03:30 UTC
+++ src/CSGTermEvaluator.cc
@@ -109,7 +109,7 @@ static shared_ptr<CSGTerm> evaluate_csg_term_from_geom
shared_ptr<const PolySet> ps = dynamic_pointer_cast<const PolySet>(geom);
// Since is_convex() doesn't handle non-planar faces, we need to tessellate
// also in the indeterminate state so we cannot just use a boolean comparison. See #1061
- bool convex = ps->convexValue();
+ bool convex(ps->convexValue());
if (ps && !convex) {
assert(ps->getDimension() == 3);
PolySet *ps_tri = new PolySet(3, ps->convexValue());