Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Using edge_collapse with an inherited polyhedron_3 class

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Using edge_collapse with an inherited polyhedron_3 class


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Using edge_collapse with an inherited polyhedron_3 class
  • Date: Wed, 27 May 2020 09:09:54 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:mQ2b1BPQTuA2F52GTXEl6mtUPXoX/o7sNwtQ0KIMzox0K/z6ocbcNUDSrc9gkEXOFd2Cra4d1qyP6furADRZqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba5yIRmssAndqMcbjYR/Jqot1xfCv2dFdflRyW50P1yYggzy5t23/J5t8iRQv+wu+stdWqjkfKo2UKJVAi0+P286+MPkux/DTRCS5nQHSWUZjgBIAwne4x7kWJr6rzb3ufB82CmeOs32UKw0VDG/5KplVBPklCEKPCM//WrKiMJ/kbhbrQq8qRJhzY7aYIKbOvRwcazSf9wVWWVPU91NVyFDGI6wc5cDAuQDMOtesoLzp0EOrRy7BQS0Cu/h1yFHiWTs0q0hz+QhEB/J3Ao9FNwIt3TUttT1NKAOUeuoyKXGzCvMb/RT2Tjj9IjIaBAgr/GWUr1sbcrRzlMvFgPAglmetIfoOCiV1uAKs2iB7upgUv6vh3QiqwF1uTWvycIshZPIhoIR0FzL6SJ5wIMsKNC+VUV0bsKqHoFKuCGGK4t5XNkiQ2dwtSsmxLAKpIO2cTUJxZk7yBPTd+CKfpaK7x/nSeucLyp1iG5mdb+xhxi/80itxvDiW8Wo01tHoDRJnsfMu30J1RHe7NWMRPV6/kekwzmP1gbT5/lYLkA7j6XbL4QtwrkqlpocqUjDGDX5l17tg6+SaEoo4PSn6+PiYrjgu5SSNJd0hxngPqgynsGzG+c1PwgUU2SF5+iwyafv8EL9TblSkPE5iLXVvI3fKMsFuqK2GQpY3pg/5xqiCjqr3s4XkWcbIF9AYx2LkovkN03LLf/iFviygVuhnTJqyv3GPbDtHpDAIWbMnbv/c7tw7VNXxhApwtBF/Z1UD6kMIPLtVU/1s9zVFho5PBa1w+bjEdl82JkeVX+WDq+XP67ftUWE5u0oI+mLa48VvCjyJ+I56P7piH81gV4dfa+30psLcH20AOhqLkGDbXfvgtoNC3kGshQjQODwh1CPVSZfZ3OoUKI94jE7BpimDYDGRo21m7yB2CC7HodXZmBBFlCAC3Lod4GfVvcDbSKdOM5hkjgeWbe9TI8h0AmitBXmxLp/MurU5ioYuIr/29h6/eLTkQg++iF1D8SGz26NUnp0nngTSj8t3KF/pFR9xU2Z3ah5hfxYD91T6OlTXgc0L56Ph9B9Xtv9UwaEctaSQ0u9Wf2nByswR5Q/2YwgeUF4Tp+ZgxrKxDarDrlds7uRBZsouuLz0n/0Ktpn2ljP37UmlUhnCIMbLmmhnK94607WA6bGlkyYk+ChcqFKj32Fz3uK0Wfb5BIQawV3S6iQBSlONHuTlszw4wb5d5HrDL0mNgVbzsvbc/lFb9ToiRNNQ/KxYY2CMVL0oH+5AFOz/p3JdJDjIjxP0yDUCUxCmAcWry7faFoOQxy5qmebNwRAUFLiZ0S2rLt7oXK/C1AulkSEMxwn2L2y9RoYw/ebTqFL0w==

You are probably missing:

namespace CGAL{
template <typename T>
struct graph_has_property<My::Mesh, T>
: public CGAL::graph_has_property<My::Mesh::Base, T>
{};

as in this example:
https://doc.cgal.org/latest/Surface_mesh/Surface_mesh_2sm_derivation_8cpp-example.html

Best regards,

Sebastien.

On 5/27/20 8:29 AM, calvin_cw ( via cgal-discuss Mailing List) wrote:
I extended the polyhedron_3 class to include other parameters in each of the
point, edge, face class.

When i tried to use the edge_collapse class, it send an error regarding the
vertex_index_map in the boost template.

I managed to solve the problem in version 4.12.1 by including the following
line to extend the boost graph_traits and property map.

******************
namespace boost {
template <>
struct boost::graph_traits<feSurfaceMesh> :
public boost::graph_traits<Poly_3>
{};
} // namespace boost

namespace boost {
template <class Tag>
struct property_map<feSurfaceMesh, Tag> :
public property_map<Poly_3, Tag>
{};
} //namespace boost
***********************

however, in the version 5.0, this error cropped up again, sending an error

Severity Code Description Project File Line Suppression
State
Error C2039 'value_type': is not a member of
'boost::property_traits<bool>'
AutoBlocking2DFreeGLUT
D:\installedLibraries\CGAL-5.0.2\include\CGAL\Surface_mesh_simplification\Detail\Edge_collapse.h
71


Question : Do I need to extend the boost::property_traits? If so, how do I
do it?
thanks!




--
Sent from: http://cgal-discuss.949826.n4.nabble.com/




Archive powered by MHonArc 2.6.19+.

Top of Page