File tree Expand file tree Collapse file tree 4 files changed +21
-4
lines changed Expand file tree Collapse file tree 4 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
tag :
7
7
@ if [ " $(git rev-parse --abbrev-ref HEAD)" != " main" ]; then exit 1 ; fi
8
- curl -H " Authorization: token `cat ~/.github-access-token`" -d ' {"tag_name": "{{ version}} "}' https:// api.github.com/ repos/ nschloe/ meshio / releases
8
+ curl -H " Authorization: token `cat ~/.github-access-token`" -d ' {"tag_name": "{{ version}} "}' https:// api.github.com/ repos/ nschloe/ pygalmesh / releases
9
9
10
10
upload : clean
11
11
@ if [ " $(git rev-parse --abbrev-ref HEAD)" != " main" ]; then exit 1 ; fi
Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = pygalmesh
3
- version = 0.9.5
3
+ version = 0.9.6
4
4
author = Nico Schlömer
5
5
author_email = nico.schloemer@gmail.com
6
6
description = Python frontend to CGAL' s mesh generation capabilities
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ pybind11_add_module(pygalmesh ${pygalmesh_SRCS})
15
15
# ADD_LIBRARY(pygalmesh ${pygalmesh_SRCS})
16
16
target_link_libraries (pygalmesh PRIVATE ${CGAL_LIBRARIES} )
17
17
18
+ # https://github.com/CGAL/cgal/issues/6002
19
+ # find_program(iwyu_path NAMES include-what-you-use iwyu REQUIRED)
20
+ # set_property(TARGET pygalmesh PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${iwyu_path})
21
+
18
22
# execute_process(
19
23
# COMMAND python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
20
24
# OUTPUT_VARIABLE PYTHON_SITE_PACKAGES
Original file line number Diff line number Diff line change 15
15
#include < CGAL/Polygon_mesh_processing/orient_polygon_soup.h>
16
16
#include < CGAL/Polygon_mesh_processing/polygon_soup_to_polygon_mesh.h>
17
17
#include < CGAL/Polygon_mesh_processing/orientation.h>
18
- #include < CGAL/IO/OFF_reader.h>
18
+
19
+ #include < CGAL/version_macros.h>
20
+
21
+ #if CGAL_VERSION_MAJOR >= 5 && CGAL_VERSION_MINOR < 3
22
+ #include < CGAL/IO/OFF_reader.h>
23
+ #endif
19
24
20
25
// for sharp features
21
26
// #include <CGAL/Polyhedral_mesh_domain_with_features_3.h>
@@ -69,7 +74,15 @@ void generate_from_off(
69
74
std::vector<K::Point_3> points;
70
75
std::vector<std::vector<std::size_t > > polygons;
71
76
72
- if (!input || !CGAL::read_OFF (input, points, polygons) || points.empty ())
77
+ if (
78
+ !input ||
79
+ #if CGAL_VERSION_MAJOR >= 5 && CGAL_VERSION_MINOR >= 3
80
+ !CGAL::IO::read_OFF (input, points, polygons) ||
81
+ #else
82
+ !CGAL::read_OFF (input, points, polygons) ||
83
+ #endif
84
+ points.empty ()
85
+ )
73
86
{
74
87
std::stringstream msg;
75
88
msg << " Cannot read .off file \" " << infile <<" \" " << std::endl;
You can’t perform that action at this time.
0 commit comments