From ba557931af83b065961417161af7ebdb082ac416 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sat, 4 Dec 2021 11:26:13 +0100 Subject: [PATCH] openscad: fix build with latest cgal --- .../openscad/generic_print_polyhedron.patch | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 packages/openscad/generic_print_polyhedron.patch diff --git a/packages/openscad/generic_print_polyhedron.patch b/packages/openscad/generic_print_polyhedron.patch new file mode 100644 index 000000000..25704f78c --- /dev/null +++ b/packages/openscad/generic_print_polyhedron.patch @@ -0,0 +1,42 @@ +commit cc49ad8dac24309f5452d5dea9abd406615a52d9 +Author: Jordan Brown +Date: Sun Jul 18 21:01:46 2021 -0700 + + Fix build failure with "generic_print_polyhedron" on CGAL-5.3. + +diff --git a/src/cgalutils-polyhedron.cc b/src/cgalutils-polyhedron.cc +index 0e5c72c3602b..14bddb7f44ce 100644 +--- a/src/cgalutils-polyhedron.cc ++++ b/src/cgalutils-polyhedron.cc +@@ -335,19 +335,6 @@ namespace CGALUtils { + } + }; + +- template +- std::string printPolyhedron(const Polyhedron &p) { +- std::ostringstream sstream; +- sstream.precision(20); +- +- Polyhedron_writer writer; +- generic_print_polyhedron(sstream, p, writer); +- +- return sstream.str(); +- } +- +- template std::string printPolyhedron(const CGAL_Polyhedron &p); +- + }; // namespace CGALUtils + + #endif /* ENABLE_CGAL */ +diff --git a/src/cgalutils.h b/src/cgalutils.h +index 231762ebc8ce..7da5a25ca6e4 100644 +--- a/src/cgalutils.h ++++ b/src/cgalutils.h +@@ -33,7 +33,6 @@ namespace CGALUtils { + bool is_approximately_convex(const PolySet &ps); + Geometry const* applyMinkowski(const Geometry::Geometries &children); + +- template std::string printPolyhedron(const Polyhedron &p); + template bool createPolySetFromPolyhedron(const Polyhedron &p, PolySet &ps); + template bool createPolyhedronFromPolySet(const PolySet &ps, Polyhedron &p); + template