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: Tue, 8 Dec 2020 08:24:25 -0800
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:UVz1ORE9K/sRED9N/39+M51GYnF86YWxBRYc798ds5kLTJ7yoMuwAkXT6L1XgUPTWs2DsrQY0rWQ6v++EjJRqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba5wIRmssAnctMgbjYRjJ6s11xDEvmZGd+NKyG1yOFmdhQz85sC+/J5i9yRfpfcs/NNeXKv5Yqo1U6VWACwpPG4p6sLrswLDTRaU6XsHTmoWiBtIDBPb4xz8Q5z8rzH1tut52CmdIM32UbU5Uims4qt3VBPljjoMOjgk+2/Vl8NwlrpWrx2vpxN9w4DaboKbOudgcKzBZt4aWXZNU9xNWyBdHo+xbY0CBPcBM+ZCqIn9okMDoAe4BQaxHuPg1DFJjWLo0K0n1eQhFwDG3AovH9IOqnvUqcj+OaAOXuC61qbIyS7OYOlP1Tjh9YjIdBYhofCKXbJ/ccre00wvGxnZgVWXrIzoJjWY3fkCvGaH9eRvT/6vi3I5pAFrpDii3togh5TKi48axV7J9SZ0zJo6K9C8RkB3fN6qHptfuiyaKoZ7TMcvTmBptSs+17AIt522cDYFxpg52xPSafyKfYeO7xn+WuiRJjJ4i2hkeLK5nxuy8E6gyvf9VsauylpKoDBFn9/RvX4Ozxze8taLRud580u72juC1xrf5v9ZLUwoj6bXNpwszqI2m5EOq0rMBDX2l1/zjKKOdkUr5Oyo6+P/b7XjvJCcNot0hhjmMqQgh8CzGOo4PhUMUmSH4+i827rj/Ur2QLVOkPI6iLXWsJffJcgDp665BRFa0po75hqhEzur1M4UkHoHIV5fZh6LkpTlN0vTLP36Efuzm1Gsny1qx/DCML3hGJLNLn3bnbj7YLl97k9cyAwowN9F/p5bFqwBIPT1Wk/wstzYAR85PBaxw+r9FNp90YYeVXqVAqCFKKPSrUOI5uU3LuaQa48aojL9J+E46P7vln82hUIdfbKy3ZYMc3C5HvFmI12Dbnb2g9cBF30KvgskQ+Dwhl2CS20bWnCpQqhp5i0nEJn0SsDYV4W1ifqA2j26F9tYfCddG1WUGDDpcYuDHPwDYSbXLs56mSEfTuucTZQ83y2jpBOvy6Z7NvGGvWoDpJf73Z504ffSnFc873tvHsGF2iaMSW9z2WgHTjtz0KFkqlFm0QS/1v1zjPVcUNBS/PhUSRwSNJjGzuU8BcqhdBjGe4KgTlq8T8ruKiw3SNM3zN8HZg4pENqrijjKmiG3BbkUkbOLDZly+aXZiSuib/1hwmrLgfFyx2ItRdFCYDX/1/xPsjPLDouMqH230qOjdKASxinIrTfRxC+FoUdeUQh/UazAG3sYYxmO9Imr1gb5V7arTI8fHE5BxMqFcPUYb9ToiRBeSq6mNo2BOyS+nGC/ARvOzbSJPtKzJzctmR7FAU1BqDg9uG6cPFFuVC7kqH/YCj1oGlLmZgXn9uws8H4=

Hi Sebastien,
Thanks, but I worked it all out. I realize it's a never-ending job
but examples of the various PMP split/clip APIs would have shortened
the learning curve somewhat.

Andrew

On Tue, Dec 8, 2020 at 12:46 AM Sebastien Loriot <>
wrote:
>
> Hi Andrew!
>
> do you want to see code or would you be more interested in an
> interactive live demo of what you can do?
>
> Best regards,
>
> Sebastien.
>
> On 12/4/20 11:16 PM, Andrew Cunningham wrote:
> > 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
> >>
> >>
>
> --
> 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.19+.

Top of Page