Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Plane to_2d and to_3d possible error

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Plane to_2d and to_3d possible error


Chronological Thread 
  • From: Philipp Moeller <>
  • To: costantinos <>
  • Cc:
  • Subject: Re: [cgal-discuss] Plane to_2d and to_3d possible error
  • Date: Thu, 20 Feb 2014 22:02:08 +0100
  • Organization: GeometryFactory

costantinos
<>
writes:

> Hi,
>
> I am trying to transform a 3d point to 2d and then back to 3d, however I
> noticed that there is a very small error when the original point is returned
> to 3d. Is this an bug or to be expected? Please see the example below. Thank
> you.

Which kernel are you using?

>
>
> Plane_3 pl3(0,0,0.36,-0.32652);
>
> Point_3 pt3(0.6,0,0.907);
> Point_2 pt2 = pl3.to_2d(pt3);
> Point_3 pt3_2 = pl3.to_3d(pt2);
>
> std::cout << pt3 - pt3_2 << std::endl;
>
>
> Output:
>
> 0 0 1.11022e-16



Archive powered by MHonArc 2.6.18.

Top of Page