Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7


Chronological Thread 
  • From: Harshil Oza <>
  • To:
  • Subject: Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7
  • Date: Thu, 29 Oct 2015 00:54:59 +0530
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:szA3ChZUP17Ruesjd/1lDwv/LSx+4OfEezUN459isYplN5qZpMWybnLW6fgltlLVR4KTs6sC0LqL9fm+EjxZqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh730osOYM1wArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIYTGZj8ZLkyGLxEECw9YSdy/9zurRCFTA2V53JaXH9RiQtNGwGC7Rf0WdD6vSL+8+Z8wyKHJtalcLYvRD7377t3UAS6z2AcJjsh+SfWjNZxheRVulW6thlnysnVZo+Sc/Fxd6eYcdIBTndaRZVsUTdcCNa8c5cXFLhGev1JqpH04VoItxq3Qwe2Q/j+zydBwX7w06p92OsoFUTK3RcrAskV40jT+d76PaNXXeGux7TT1h3CaelX0HHz8tvmaBck9NGFR6lwcM6Z7lsmX1fFh0+LqY3hOCGc/usIummfqeFnULT82CYctwhtr233lY8XgY7Ti9dNxw==

I am using the example code of hole filling. It works fine with the "triangulate_and_refine_hole" but with "triangulate_refine_and_fair_hole" I am receiving the following compilation error.

Compilation Error on Visual Studio 2013 - 64 bit:
 
CGAL/Polygon_mesh_processing/internal/Hole_filling/Weights.h(121): error C2977: 'CGAL::internal::Cotangent_value_Meyer' : too many template arguments
CGAL/internal/Surface_
modeling/Weights.h(47) : see declaration of 'CGAL::internal::Cotangent_value_Meyer'

Code:

    typedef Polyhedron::Facet_handle       Facet_handle;
    typedef Polyhedron::Vertex_handle      Vertex_handle;
    typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
    for each(HeHnd h in halfedges(mPolyhedron))
    {
        if(h->is_border())
        {
            std::vector<Facet_handle>  patch_facets;
            std::vector<Vertex_handle> patch_vertices;
            CGAL::Polygon_mesh_processing::triangulate_refine_and_fair_hole(
                mPolyhedron,
                h,
                std::back_inserter(patch_facets),
                std::back_inserter(patch_vertices));

        }
    }


Solution Tried:

 
I have check the online and found that "VC++11 doesn't have support for variadic templates. They have something they call faux variadics and _VARIADIC_MAX is by default defined as 5 in header <xstddef> and suggesting to set it to 10" but it doesn't work for me. Have you guys compiled this on Visual Studio?

Thanks & Regards,
Harshil



On Wed, Oct 28, 2015 at 7:13 PM, Andreas Fabri <> wrote:
It might make sense that you post a complete self contained example.cpp

andreas

On 28/10/2015 14:32, Harshil Oza wrote:
Thanks a lot for the quick reply. But I ma still getting the following error
CGAL/Polygon_mesh_processing/internal/Hole_filling/Weights.h(121): error
C2977: 'CGAL::internal::Cotangent_value_Meyer' : too many template arguments
CGAL/internal/Surface_modeling/Weights.h(47) : see declaration of
'CGAL::internal::Cotangent_value_Meyer'

Thanks & Regards,
Harshil

On Wed, Oct 28, 2015 at 6:17 PM, Sebastien Loriot (GeometryFactory)
< <mailto:>> wrote:

    On 10/28/2015 11:57 AM, Harshil Oza wrote:

        Windows - VS2013 I have been using.

        I have included /CGAL/Polygon_mesh_processing/fair.h to the top but
        error is till there.


    I meant adding inside CGAL/Polygon_mesh_processing/fair.h
    #include <CGAL/Polygon_mesh_processing/internal/Hole_filling/Weights.h>

    Anyway, there is an error in naming of preprocessing macros. I fixed in
    the release branch.

    Here is a copy of the file including the fix:
    https://raw.githubusercontent.com/CGAL/cgal/master/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Hole_filling/Weights.h


    Sebastien.


        Is there and Pr-processor macro that need to set?

        Thanks & Regards,
        Harshil


        On Wed, Oct 28, 2015 at 4:21 PM, Sebastien Loriot (GeometryFactory)
        < <mailto:>
        <mailto: <mailto:>>> wrote:

             What platform are you on?

             Could you try adding at the top of
             include/CGAL/Polygon_mesh_processing/fair.h

             #include
        <CGAL/Polygon_mesh_processing/internal/Hole_filling/Weights.h>?

             Thanks,

             Sebastien.


             On 10/28/2015 11:43 AM, Harshil Oza wrote:

                 Hi Guys,

                 I am using the default example and while compiling the
        same I
                 got this
                 following error

                 error C2039:
        'Cotangent_weight_with_voronoi_area_fairing' : is not a
                 member of 'CGAL::internal'

                 Quick help will be appreciated.
                 Thanks & Regards,
                 Harshil




             --
             You are currently subscribed to cgal-discuss.
             To unsubscribe or access the archives, go to
        https://sympa.inria.fr/sympa/info/cgal-discuss





    --
    You are currently subscribed to cgal-discuss.
    To unsubscribe or access the archives, go to
    https://sympa.inria.fr/sympa/info/cgal-discuss




--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss






Archive powered by MHonArc 2.6.18.

Top of Page