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 01:40:40 +0530
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:ilSO4h00GDS40XjasmDT+DRfVm0co7zxezQtwd8Zse4WKvad9pjvdHbS+e9qxAeQG96LtrQd1aGP6/2ocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC0oLuiavro8CbSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/NGSrjwKqQkUaRDXnNhKHEw/MSttB/ZTALJ6GFbSXQTihMPAg7L61bxUZ719yf7reFgwzLJAMvtULphWSi+97w5D1jzmSIfPng49nvWg4p+luVAsRe5rlt+xYDTJ4qaPf47cqLGds4BXjl8WN1MXXlBHp+kdNlISPEQOP5R6Yj7vVoH6xWkQhK9AfvmjT5OiHix1qIz16EtEBrNwRc7TO4J5X/bpdGwOKYJWv2u14HJyy/CZrVYw2TT8o/NJzAou+qMXLY4VtjYgR0vHhnejlSUrp7sFzyQ3+UJ9WOc6rwzBqqUl2c7plQp8XCUzcA2h9yRiw==
I guess have got the problem. We have two "Weights.h" one is in "CGAL\internal\Surface_modeling" and second is in "Polygon_mesh_processing\internal\Hole_filling". They are not identical but the some classes name and their name space are identical. Instead of ambiguity error I was getting above error. For time being I have just renamed the name space in "Polygon_mesh_processing\internal\Hole_filling" - internal to internal2 and it worked. Can you guys please look into it and let me know the best way to tackle this problem.
Thanks & Regards,On Thu, Oct 29, 2015 at 12:54 AM, Harshil Oza <> wrote:
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 argumentsCode:
CGAL/internal/Surface_modeling/Weights.h(47) : see declaration of 'CGAL::internal::Cotangent_value_Meyer'typedef Polyhedron::Facet_handle Facet_handle;Solution Tried:
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));
}
}
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,HarshilOn 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
- [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Harshil Oza, 10/28/2015
- Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Sebastien Loriot (GeometryFactory), 10/28/2015
- Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Harshil Oza, 10/28/2015
- Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Sebastien Loriot (GeometryFactory), 10/28/2015
- Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Harshil Oza, 10/28/2015
- Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Andreas Fabri, 10/28/2015
- Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Harshil Oza, 10/28/2015
- Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Harshil Oza, 10/28/2015
- Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Harshil Oza, 10/28/2015
- Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Andreas Fabri, 10/28/2015
- Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Harshil Oza, 10/28/2015
- Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Sebastien Loriot (GeometryFactory), 10/28/2015
- Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Harshil Oza, 10/28/2015
- Re: [cgal-discuss] Compilation Error in triangulate_refine_and_fair_hole : CGAL 4.7, Sebastien Loriot (GeometryFactory), 10/28/2015
Archive powered by MHonArc 2.6.18.