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: Sebastien Loriot <>
  • To:
  • Subject: Re: [cgal-discuss] Problems compiling an example using CGAL::Polygon_mesh_processing::split
  • Date: Tue, 8 Dec 2020 09:46:39 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:agkGkxIDp3ZjbBPw4dmcpTZWNBhigK39O0sv0rFitYgXKvj6rarrMEGX3/hxlliBBdydt6sbzbOJ7uuwByQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTagY75+Ngi6oAfRu8UZgoZvK7s6xwfUrHdPZ+lY335jK0iJnxb76Mew/Zpj/DpVtvk86cNOUrj0crohQ7BAAzsoL2465MvwtRneVgSP/WcTUn8XkhVTHQfI6gzxU4rrvSv7sup93zSaPdHzQLspVzmu87tnRRn1gyoBKjU38nzYitZogaxGvhyhqRxxzY3abo6bO/VxfL/Sc9wBSGpdXMtcTTBNDp+yYoYNCecKIOZWr5P6p1sLtRawGBejC/j1xT9Tmn/23LM10+I8Gg/A2wwgBdMOsHPIrN7oM6oSSuS1zK7SzTXCaPNWxS3x6I3Mch06rvGMWKh/ccvVyUU1CwzFiVCQpJXjMjiI2esDr3KV4PB8VeKzlWEnsQdxryChyMkjlIXFm4AYx1HK+yh5z4s5ON21RkB1bNO5DJZdti6XOpd3T84iXmxkpCU3x74btJO5cyUHyJoqywDDZ/GJdYWD/xztVOGUIThihXJlfqqyhxe08Ui6y+3zTNO40FhQridDj9LCtWgN2gTN5sSbTvZx5ESs1DaV2wzN9O1IPFo4mKXaJpI53LI/jIYfvVnGEyDohEn5lqqbels49uS17unqbK/pqoGAO4JxlA7zMqAjltC6DOsiLgcOUXKU9OG42bDj/kD5TrBHg/krnqTWrZ/XI9kQqLSjDA9PyIkj7g6yDze439QcmnkKNFdFdwiGj4jtIl3PLur4Aeqmj1SinzpmxurKPrLmApXKIXjDlKnucaxh5E5bzQo/1dFf55RKBbEdOP//RFP9udjCAhI6MwG42fjrBMtg2o8EVm+CA7eVMKbIvl+J4uIvLfOMZIgQuDvlMPgl4/nujWU4mV8aYamlx54XaHSjE/RpJkWWe3vsgtMbHWgWuQo+SfTmiEeeXj5Le3ayQ6U86yknB4KpF4jDQpmhj6GA3CegApJWe3tGCkuXHHfzd4SEXu8MZziILs9glDwET7mhRJU72RGgrg+pg4dhNffery0EqYr4hp8y/PzWjRh09DpuDs3b3XvKVHBxhmpPRjk42+d0rkV5j1uCyqNlmOcLKNpI+vl1XxcmYJ7A0/RhWZe1QRPEZt7PSVC8Q9zgDyt2VcM029ZJYkBzHJKpgRnHmiarGLQIjKfYOJth+a3V2z39Jt121m3d/KgnlVgvBMVVZkO8gasqzAXZDpXVkkif34Ktb6UbwGaZ72OE12uJoAddVCZ/VKzEWTYUYU6A/oex3V/LU7L7UedvCQBG08PXcvIXOO2stk1PQbLYAPqbY2+1nD3tVxOBx7fJc5CzPmtBgmPSD08Llw1V9nGDZ1BnV3WR5lnGBTkrLmrBJkbl8O1wsnS+FxZmwASDbkkn3L2wqEdM2a6sDsgL17dBgx8P7i1uFQ/kjd3TAtuE4QFmefcEbA==

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





Archive powered by MHonArc 2.6.19+.

Top of Page