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: Fri, 4 Dec 2020 14:16:36 -0800
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:agLWbRFeR91EbUc19boS2Z1GYnF86YWxBRYc798ds5kLTJ7yoMiwAkXT6L1XgUPTWs2DsrQY0rWQ6v6wEjVcv96oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vLhi6txjdu8gVjIdtN6o8xRrEqWZUdupLwm9lOUidlAvm6Meq+55j/SVQu/Y/+MNFTK73Yac2Q6FGATo/K2w669HluhfFTQuU+3sTSX4WnQZSAwjE9x71QJH8uTbnu+Vn2SmaOcr2Ta0oWTmn8qxmRgPkhDsBOjUk9mzcl85+g79BoB+5qBN/zYzbboGbOvR9Y63TY88VSHFdXspNTSFNHp+wY5cNAucHIO1Wr5P9p1wLrRamGQSsAv7gyiVWiX74wKY3zfkhEQfA3AwhGdIOv3TUo8/wNKwPVu260KbIwi/Hb/5Nwzjx8ZTHcg0nofGKXLJwd8XRyUk1GAPAlFmftYvlPzaM2+kLrmOU4PZuW/i1hG47twF+vCKvxsE0h4XUm48YyV/J+yp5zYs2OdG2R0p2b9C5HJVQty+XOIt7T94sTmxsuSs3y7kLtIO1ciUJ1pgpyADTZuCFfoWI7RzuUvuaLzl/hHJgYr2/hhCy/FChyu36TMm00UxFojBLktnWsH0Gyh/d6tCfR/dj4kus3SyD2gPT5+1eP0w4ianWJ4Quz7M0kJcYrF7NETXsmErsia+bbkUk9fas6+Tgerjmo4WTN45wig3nLKshh9GzDf02MgUBW2WX4+u81Lrk/U32RLVFkOc6nbXesJDfPcgbp6i5DBFJ0os79RqzEzOr3M4bkHQHNl5JZg6LgovzN1zBJP30FfK/jE6tkDdvyfDGJLrhApDVI3fZjbjheLd960hHxQUp1NxQ+49UCrcHIPLyXE/xu9zYAQU8MwCu3+nnD9B92psEWW2TGq+ZLL/SsViQ6+0zLOmDfosVtC/gJPgk/P7hkWI5mUQGfaSyxpsWaHW4Hux8LEmDYHrshM0BEWYQsQYkQuzqkg7KbDhIenznX74g/ippT8W9HILbT8ashqaA1WG1BNpNd2VeAxeNF3nvMI6LUvNJZCOJKdJ6iW85U6O8QbMsxQ37tBPm06E1aa3P6ygAvNTi0sJ07qvdj1Yp5DlsBoOc1W+KCGp7l2dNSz4t171kuh9BzQKI3qF8xvBZDtdO/OhhUwEgNJeawfYpJcr1X1foeNuTRUnuacigBzA3QdI4xpdaaEl0H/2ryxve2SyrBbAVnrnND5sxpPGPl0PtLtpwni6VnJIqiEMrF5MWaT+Ww5Vn/g2WPLbn1l2Dnv/6J61Z1zPL8maFwmqHuQdTVwsiCfyUD0BaXVPfqJHC3m2HSravDbo9NQ4YmZyLb6BXbNvoi1pGTfKlM9PbMTroxjWAQC2Qz7bJV7LEPmUQ2CKHVRoBmgEXuHuKbE0wWnbnrGXZAzhjU1noZhG0/A==
Hi Andreas,
No, it's not much of a major issue. Our 3D coordinates are 'float' but
it's easy enough to use double when creating CGAL structures.
I would be more interested in seeing some examples of the use of "PMP
split" algorithms.
Andrew
On Thu, Dec 3, 2020 at 1:46 AM Andreas Fabri
<> wrote:
>
> Hi Andrew,
>
> Is float what you use in your applications? Adding support for it
> would not be a major issue,
> but you are the first user who requests that.
>
> Best,
>
> Andreas
>
> On 12/2/2020 10:33 PM, Andrew Cunningham wrote:
> > 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
>
> --
> Andreas Fabri, PhD
> Chief Officer, GeometryFactory
> Editor, The CGAL Project
>
>
> --
> 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] Problems compiling an example using CGAL::Polygon_mesh_processing::split, Andrew Cunningham, 12/02/2020
- Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split, Andrew Cunningham, 12/02/2020
- Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split, Andrew Cunningham, 12/02/2020
- Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split, Andreas Fabri, 12/03/2020
- Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split, Andrew Cunningham, 12/04/2020
- Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split, Sebastien Loriot, 12/08/2020
- Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split, Andrew Cunningham, 12/08/2020
- Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split, Sebastien Loriot, 12/08/2020
- Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split, Andrew Cunningham, 12/04/2020
- Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split, Andreas Fabri, 12/03/2020
- Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split, Andrew Cunningham, 12/02/2020
- Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split, Andrew Cunningham, 12/02/2020
Archive powered by MHonArc 2.6.19+.