From 50f9354282fa11b52d3b04ce14c384681bfc6219 Mon Sep 17 00:00:00 2001 From: Ivoah Date: Fri, 3 Jan 2014 16:03:13 -0500 Subject: [PATCH 1/2] Added elif statement for Raspbian (Raspberry Pi) --- scripts/uni-get-dependencies.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/uni-get-dependencies.sh b/scripts/uni-get-dependencies.sh index d2408c00..048edb88 100755 --- a/scripts/uni-get-dependencies.sh +++ b/scripts/uni-get-dependencies.sh @@ -65,7 +65,6 @@ get_debian_deps() done } - unknown() { echo "Unknown system type. Please install the dependency packages listed" @@ -77,6 +76,8 @@ if [ -e /etc/issue ]; then get_debian_deps elif [ "`grep -i debian /etc/issue`" ]; then get_debian_deps + elif [ "`grep -i raspbian /etc/issue`" ]; then + get_debian_deps elif [ "`grep -i mint /etc/issue`" ]; then get_debian_deps elif [ "`grep -i suse /etc/issue`" ]; then From 70026aa0b8dd2e918c17a5783ea1c02dd1d1e01b Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Fri, 3 Jan 2014 23:06:56 -0500 Subject: [PATCH 2/2] bugfix: real geometry with bugs should evaluate with a dimension --- src/CGALEvaluator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CGALEvaluator.cc b/src/CGALEvaluator.cc index 20c5d5ec..37d4fd8c 100644 --- a/src/CGALEvaluator.cc +++ b/src/CGALEvaluator.cc @@ -708,7 +708,7 @@ CGAL_Nef_polyhedron CGALEvaluator::evaluateCGALMesh(const PolySet &ps) PRINTB("Alternate construction failed. CGAL error in CGAL_Nef_polyhedron3(): %s", e.what()); } CGAL::set_error_behaviour(old_behaviour); - return CGAL_Nef_polyhedron(N); + if (N) return CGAL_Nef_polyhedron(N); } - return CGAL_Nef_polyhedron(); + return CGAL_Nef_polyhedron(ps.is2d?2:3); }