Skip to content

Commit 991c367

Browse files
committed
trying to fic polyhedron
1 parent 4e71321 commit 991c367

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

example/08_polyhedralsurface_example.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ int main()
1010
using namespace boost::geometry;
1111
using point_t = model::point<double, 3, cs::cartesian>;
1212
using ring_t = model::ring<point_t>;
13+
/*
1314
using polyhedral_t = model::polyhedral_surface<ring_t>;
1415
1516
// intializing an empty polyhedral surface (deafault constructor)
1617
polyhedral_t polyhedral2;
1718
1819
// creating a polyhderal surface using standard initiallized list
1920
polyhedral_t polyhedral1 = {{{0,0,0}, {0, 1, 0}, {1, 1, 0}, {1, 0, 0}, {0, 0, 0}}, {{0, 0, 0}, {0, 1, 0}, {0, 1, 1}, {0, 0, 1}, {0, 0, 0}},
20-
{{0, 0, 0}, {1, 0, 0}, {1, 0, 1}, {0, 0, 1}, {0, 0, 0}}, {{1, 1, 1}, {1, 0, 1}, {0, 0, 1}, {0, 1, 1}, {1, 1, 1}}, {{1, 1, 1}, {1, 0, 1}, {1, 0, 0}, {1, 1, 0}, {1, 1, 1}},
21+
{{0, 0, 0}, {1, 0, 0}, {1, 0, 1}, {0, 0, 1}, {0, 0, 0}}, {{1, 1, 1}, {1, 0, 1}, {0, 0, 1}, {0, 1, 1}, {1, 1, 1}}, {{1, 1, 1}, {1, 0, 1}, {1, 0, 0}, {1, 1, 0}, {1, 1, 1}},
2122
{{1, 1, 1}, {1, 1, 0}, {0, 1, 0}, {0, 1, 1}, {1, 1, 1}}};
2223
2324
// modifying a polyhedral surface
@@ -33,4 +34,6 @@ int main()
3334
3435
// clear polyhedral surface
3536
clear(polyhedral1);
37+
38+
*/
3639
}

include/boost/geometry/algorithms/num_interior_rings.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ namespace dispatch
4646
{
4747

4848

49-
template <typename Geometry, typename Tag = tag_t<Geometry>>
49+
template <typename Geometry, typename Tag = boost::geometry::tag_t<Geometry>>
5050
struct num_interior_rings
51-
: detail::counting::other_count<0>
51+
: boost::geometry::detail::counting::other_count<0>
5252
{};
5353

5454

5555

5656
template <typename Polygon>
57-
struct num_interior_rings<Polygon, polygon_tag>
57+
struct num_interior_rings<Polygon, boost::geometry::polygon_tag>
5858
{
5959
static inline std::size_t apply(Polygon const& polygon)
6060
{

0 commit comments

Comments
 (0)