Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split


Chronological Thread 
  • From: Andrew Cunningham <>
  • To:
  • Subject: Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split
  • Date: Wed, 2 Dec 2020 13:33:29 -0800
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:sysq5hzSQdWSP5bXCy+O+j09IxM/srCxBDY+r6Qd2+kWIJqq85mqBkHD//Il1AaPAdyErasa16GP7/2ocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmTiwbalvIBi3ogjdudQajIRiJ60s1hbHv3xEdvhMy2h1P1yThRH85smx/J5n7Stdvu8q+tBDX6vnYak2VKRUAzs6PW874s3rrgTDQhCU5nQASGUWkwFHDBbD4RrnQ5r+qCr6tu562CmHIc37SK0/VDq+46t3ThLjlSEKPCM7/m7KkMx9lK1UoByjqBJ/zYDaY5ybOuRica7GYdMWWXBMUtpNWyBdAI6xaZYEAeobPeZfqonwv0cDrR2jCgm2GuzuxCJDi2Hr3a081eQhEAfG3AMgH90UtXTfsdL4O7sdUe+vyKnF1i/MY+pK1jfg7ojIdBEhofeDXbJwa8XRzFMjGB/CjlWVsIHoOS6e2esRvWaB9eVgSf6vhHA9qwF3ujWhyMcihpfJi4wb1F3I6zl1zok3KNC2RkB1YdGpHZtMui2EKoZ6XMMsTn92tSs0yrALu4K3cicKxpkn2hLSb/yJfo6V6RzgTOacOSl0iG5hdb6lhBu/8VKsxvPhWsS3ylpHrjRJn9/RvX4XzRPT8NKISv5l80ehxzmP0wfT5/lBIU8ulKrbL4ctzaAylpYOqEjDEC/7lFvsgK+ZcUUk/eeo6+D5bbn8upCcMIp0hhn/MqQohMO/Hfw1PhYSU2Wf4+ix173u8VfnTLlXjfA6iKnUvI7CKcQevKG5AgtV0og56xa4CjeryM4XkmQCLFJEfhKKlJLmN0jSL/DlC/e/hVWskDFkx/DGJLLhB4/BIWTEkLfkZbp98VJTyBIvzdBD4JJZEq0OIP3pVU/1rdDXEx45MxeozOb6E9V9zZgTWXmPA6+cKKPdq0WE5uMpI+mWZY8aoizxK/Y/562msXhsklAUeeyl3IAcdWujNvVgOUSQJ3T20fkbFmJflwwyVuH1wHafVzhSYXmyVqd0sjo0AYaOBMLIW4argbqO3C6+WJZRYzYVWRi3DX70etDcCL83YyWIL5o5y2BWZf2aU4YkkCqWmkri0bM+frjdvyYFs5Ti0td17uiVnhY3p2QtXpatllqVRmQxpVsmAjo/3aRxu0t4kwfR2O1znvpeFNpc5/pMFAw9MMyElrEoO5XJQgvEO+yxZhOmT9GhW2xjS9swx5oDYR84FYj4yB/E2CWuDvkekLnZXJE=

The issue can be resolved by using the <double> kernel. That's an
acceptable solution for me but does point out the difficulty of
template based programming when error messages can be obscure to say
the least.

On Wed, Dec 2, 2020 at 10:16 AM Andrew Cunningham <>
wrote:
>
> The error from the Visual C++ compiler ( 2019) is similar ( this is
> not a Intel Compiler issue)
>
> 1>D:\CGAL-5.1\include\CGAL/NT_converter.h(33,1): error C2440:
> '<function-style-cast>': cannot convert from 'const NT1' to 'NT2'
> 1> with
> 1> [
> 1> NT1=CGAL::Lazy_exact_nt<CGAL::Gmpq>
> 1> ]
> 1> and
> 1> [
> 1> NT2=float
> 1> ]
> 1>D:\CGAL-5.1\include\CGAL/NT_converter.h(33,19): message : No
> user-defined-conversion operator available that can perform this
> conversion, or the operator cannot be called
> 1>D:\CGAL-5.1\include\CGAL/NT_converter.h(32): message : while
> compiling class template member function 'NT2
> CGAL::NT_converter<CGAL::Lazy_exact_nt<CGAL::Gmpq>,NT2>::operator
> ()(const NT1 &) const'
>
> On Wed, Dec 2, 2020 at 10:06 AM Andrew Cunningham <>
> wrote:
> >
> > Hi,
> > I am trying to use
> >
> > void CGAL::Polygon_mesh_processing::split ( TriangleMesh & tm,
> > const Plane_3 & plane,
> > const NamedParameters & np )
> >
> > There are no examples in 5.1 for this API.
> >
> >
> > When I do try and compile my code using this API and a <float> kernel
> > I am getting an error message
> >
> > using K = CGAL::Simple_cartesian< float >;
> > using Point_3 = K::Point_3;
> > using Mesh = CGAL::Surface_mesh< Point_3 >;
> > using Plane = K::Plane_3;
> >
> >
> > CGAL/NT_converter.h(33): error : no suitable conversion function from
> > "const CGAL::Lazy_exact_nt<CGAL::Gmpq>" to "float" exists
> >
> > I am using the Intel 19.1 C++ compiler.
> >
> > Andrew



Archive powered by MHonArc 2.6.19+.

Top of Page