aboutsummaryrefslogtreecommitdiff
path: root/cad/openscad
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2018-10-22 20:31:36 +0000
committerJan Beich <jbeich@FreeBSD.org>2018-10-22 20:31:36 +0000
commitfa6b684e82084d44ad31c780c713e0a8e426af9f (patch)
tree2bf316bb529c4b0bbf2f8aca268e8432dcec9b25 /cad/openscad
parent2fd0a6aa5eca84790c79257641635f023ca46ca1 (diff)
downloadports-fa6b684e82084d44ad31c780c713e0a8e426af9f.tar.gz
ports-fa6b684e82084d44ad31c780c713e0a8e426af9f.zip
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
Notes
Notes: svn path=/head/; revision=482792
Diffstat (limited to 'cad/openscad')
-rw-r--r--cad/openscad/files/patch-boost-1.6913
1 files changed, 13 insertions, 0 deletions
diff --git a/cad/openscad/files/patch-boost-1.69 b/cad/openscad/files/patch-boost-1.69
new file mode 100644
index 000000000000..6bee3b37fbae
--- /dev/null
+++ b/cad/openscad/files/patch-boost-1.69
@@ -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());