Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL::Plane_3: bug in functions to_2d and to_3d ??

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL::Plane_3: bug in functions to_2d and to_3d ??


Chronological Thread 
  • From: Bertrand Pellenard <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL::Plane_3: bug in functions to_2d and to_3d ??
  • Date: Thu, 01 Mar 2012 16:31:58 +0100

On 03/01/2012 02:17 PM, Sebastien Loriot (GeometryFactory) wrote:
Read that:
http://www.cgal.org/FAQ.html#inexact_NT

and try again with CGAL::Simple_cartesian<CGAL::Gmpq> for example
(Exact_predicates_exact_constructions_kernel for a more efficient one).

Sebastien.

On 03/01/2012 02:15 PM, Bertrand Pellenard wrote:
On 03/01/2012 02:11 PM, Sebastien Loriot (GeometryFactory) wrote:
Which Kernel are you using?

Sebastien.

On 03/01/2012 02:04 PM, Bertrand Pellenard wrote:
Hello,

i used functions to_2d and to_2d functions of CGAL::Plane_3.

if the object plane have Vector_3 of orthogonal_direction equals to i, j
or k, the result of to_2d is not relevant:

in my experiments:
the normal of the plane is the vector : 4.71019e-19 -1 8.02098e-20

Points to convert in 2d:
p1 : 1.63532 -0.766137 0.493543
p2 : 1.23422 -0.766137 1.18164
p3 : 0.303906 -0.766137 1.6816


Returned values:
-1.62655e+18 0.493543
-1.62655e+18 1.18164
-1.62655e+18 1.6816


Is someone have encountered this kind of bug ?

Best regards.

Bertrand Pellenard









I use CGAL::Simple_cartesian<double> Kernel.



great. it's fine with Exact_predicates_exact_constructions_kernel.
Thank you.



Archive powered by MHonArc 2.6.16.

Top of Page