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 10:16:25 -0800
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:jFEu/RGKlytlUCuHRfOJ051GYnF86YWxBRYc798ds5kLTJ7zpMywAkXT6L1XgUPTWs2DsrQY0rWQ6v68EjVYvt6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vLhi6txjdu8gZjIdtN6o91hnEqWZUdupLwm9lOUidlAvm6Meq+55j/SVQu/Y/+MNFTK73Yac2Q6FGATo/K2w669HluhfFTQuU+3sTSX4WnQZSAwjE9x71QJH8uTbnu+Vn2SmaOcr2Ta0oWTmn8qxmRgPkhDsBOjUk9mzcl85+g79BoB+5qBN/zYzbboGbOvR9Y63TY88VSHFdXspNTSFNHp+wY5cNAucHIO1Wr5P9p1wLrRamGQSsAv7gyiVWiX74wKY3zfkhEQfA3AwhGdIOv3TUo8/wNKwPVu260KbIwi/Hb/5Nwzjx8ZTHcg0nofGKXLJwd8XRyUk1GAPAlFmftYvlPzaM2+kLrmOU4PZuW/i1hG47twF+vCKvxsE0h4fHhowZ1FDJ+ytnzYorOdG2R0x2bNCqHpVQuCyXN5d7Tt0/Tm12uCg31KMLtJC7cSUI1JgpyB7RZvyaf4WM4hzuUvuaLzRghH99Zr6zmxK//VKjx+D8TMW4zktGoylfntTMqHwA0QHY5NKdRftn5Eih3C6C1wDN5eFAJkA5ja/bJIQgwr40j5Ycr0bDEjLvlEX4jKKaaF8o+uev6+TgbbXmooGTO5VohQH5N6Qigs2/AeImPQgSR2WX5/iw2bn58UD6QLhGlOM6nrTavZzAJckXuLa1AwpP3YYi7xa/AS2m0NMdnXQfNl1KZReHj4nvO1zVOv/0FOuwg0mqkDdtxvDGOLLhApXXIXjGirvuYbF960tExAop0d9f/45UCq0GIP/rRkDxu8bXDhsgPwOpwubnE8ly1p4FWWKUGaKZK6PTsVqQ5u01OeWMZYkVuCz8K/c//fLug2U5yhchevyi0pITLXy5Bf97OF6xYHz2g95HH31ZkBA5SbnDjlGYXCEbTGu0WaM66TEyDcryBojKQqikxbec2iG6GJJWb2UAAVeJRyS7P76YUusBPXrBavRqlSYJAOD4F90RkCq2vQq/8IJJa/LO83RI55um38Vz4ezVmhE78Hp/CMHPizjQHVExpXsBQnoN5I46oUF5zQ3eg61xgvgdGN4Kov0UCEE1MpnTy+E8ANf3CFqYL4W5DW2+S9DjOgkfC9c4wtsAeUF4QoXwh1XIwiysArkal7WOQpcz9/CE0g==

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