Subject: CGAL users discussion list
List archive
- From: lsanti <>
- To:
- Subject: [cgal-discuss] Inheriting from CGAL::Surface_mesh
- Date: Tue, 29 Jan 2019 13:23:27 -0600 (CST)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Fail ; spf=Pass
- Ironport-phdr: 9a23:HGhzkxdYQ2kILClfdFROGgiUlGMj4u6mDksu8pMizoh2WeGdxcq9bR7h7PlgxGXEQZ/co6odzbaO4+a4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahYr5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM3/mHZhNJzgqxGrx2uuxNxzpXIYIGMKPZyYr/Rcc8YSGdHQ81fVzZBAoS5b4YXC+oBJvxXr4/hp1sPsBCzAg2sBPj1xT9Omn/23LY33Pk9Hg3cwQwvBMgBvG7Oo9XvLaofV/2+wqfPzTXGdfxW2DH95ZDOch87uv6DRrZwftTLxUYzEAPFi1OdopHmMTONzukBrmyW4u56We+hiGMrsQJ8rzm1ysoti4TEgJ8exEre+iVj2ok1IMW1SE5lbt6gF5tdryeaOoRsTsMkWW5noz01yrkYtpKhYCcKz5Enywbea/yBbYeI/gruWPuVLDp8nn5odrGyiwyx/EWh0OHxV8i53E5PriVfk9nMsn4N1wbU6siCUvZ9+lyh1iyJ1wDP6+FJOl07mrbBJ5482bE/jIAfvl7ZHiPugkX5kLeWdlk4+uiv8+nofrrmqYWYN4Ntlw7+M78uldCiAeQjKQgDRHOb+OS51L3750L1WrRKjvsskqnYqp/WP8obprTqSzNSh40s4hL6Aza928kDhlEGKkhEcVSJldvHIVbLdfTjBPGjghz4lCxiwezHFrHqRIjHJz7KiuGyLv5G90dAxV9rnphk7JVOB+RZeaOhagrKrNXdSyQBHUmxyufjBs9609pHC26ERLKTOeXbqw3Uv759E6y3fIYQ/Q3FBb09/fe31C01khkAd6Dv1IFFMCnlTMQjGF2QZD/XuvlEEWoOuVNjHuq2zluLWzRXajC5WKduvzw=
Hi all,
I'm trying to inherit from CGAL::Surface_mesh since it would be very
convenient for me to add some custom behavior to the meshes. I've already
followed some guidelines I found in other threads (e.g. this one
<http://cgal-discuss.949826.n4.nabble.com/Polyhedron-vertex-descriptor-td4658859.html>
) but still I have a couple of compilation issues when trying to call
functions from CGAL::Polygon_mesh_processing --namely,
/is_outward_oriented()/, /volume()/ and /triangulate_faces()/.
This is my code so far:
typedef CGAL::Surface_mesh<CGAL::Simple_cartesian<double>::Point_3>
CGALMesh;
namespace retQSS
{
class Mesh : public CGALMesh
{
public:
Mesh() {};
virtual ~Mesh() {};
};
}
namespace boost
{
template<>
struct graph_traits<retQSS::Mesh> :
public boost::graph_traits<CGALMesh>
{};
template<>
struct graph_traits<retQSS::Mesh const> :
public boost::graph_traits<CGALMesh const>
{};
template <class Tag>
struct property_map<retQSS::Mesh, Tag> :
public property_map<CGALMesh, Tag>
{};
}
...and the first compilation error I get when calling the aforementioned
functions is:
error: no type named ‘value_type’ in ‘struct boost::property_traits<bool>’
I think I could be missing some additional structs in the boost namespace.
Any help would be appreciated!
Thanks in advance,
Lucio
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Inheriting from CGAL::Surface_mesh, lsanti, 01/29/2019
- Re: [cgal-discuss] Inheriting from CGAL::Surface_mesh, Sebastien Loriot (GeometryFactory), 01/30/2019
- Re: [cgal-discuss] Inheriting from CGAL::Surface_mesh, Lucio Santi, 01/30/2019
- Re: [cgal-discuss] Inheriting from CGAL::Surface_mesh, Sebastien Loriot (GeometryFactory), 01/30/2019
Archive powered by MHonArc 2.6.18.