从CGAL :: Polyhedron_3继承

问题描述 投票:0回答:1

我从CGAL :: polyhedron_3继承了一个Enriched_polyhedron并添加了一些额外的函数然后我开始在使用boost图形界面时遇到问题但是它在CGAL :: polyhedron_3中运行得很好错误在'struct boost :: property_traits中没有名为'value_type'的类型“

我试图像这样添加boost命名空间,但它没有帮助

namespace boost
{
template <class K, class I>
struct graph_traits<Enriched_polyhedron<K, I>> : public graph_traits<CGAL::Polyhedron_3<K, I>>
{
};
} // namespace boost
namespace boost
{
template <class K, class I, class Tag, class enabled>
struct property_map<Enriched_polyhedron<K, I>, Tag,enabled> : public property_map<CGAL::Polyhedron_3<K, I>, Tag,enabled>
{
};

template <class kernel, class items>
class Enriched_polyhedron : public CGAL::Polyhedron_3<kernel, items>
{
....... 
}
c++ inheritance cgal
1个回答
0
投票

您可以在以下Surface_mesh中关注example所做的工作。

© www.soinside.com 2019 - 2024. All rights reserved.