Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] Plane to_2d and to_3d possible error


Chronological Thread 
  • From: costantinos <>
  • To:
  • Subject: [cgal-discuss] Plane to_2d and to_3d possible error
  • Date: Thu, 20 Feb 2014 12:19:27 -0800 (PST)

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.


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




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Plane-to-2d-and-to-3d-possible-error-tp4658829.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page