Skip to Content.
Sympa Menu

cgal-discuss - Bug in 3 Planes intersection?

Subject: CGAL users discussion list

List archive

Bug in 3 Planes intersection?


Chronological Thread 
  • From:
  • To:
  • Subject: Bug in 3 Planes intersection?
  • Date: Mon, 10 Sep 2007 13:35:05 +0200

I use this code:

Result=CGAL::intersection(TwinPlane, NewPlane, AftPlane);
Point3D Target;
bool isdo=assign(Target,Result);
Number d1=CGAL::squared_distance(NewPlane,Target);
Number d2=CGAL::squared_distance(AftPlane,Target);
Number d3=CGAL::squared_distance(TwinPlane,Target);

"Number" beign a cartesian<double> kernel number type, and (TwinPlane,
NewPlane, AftPlane) are all Plane_3<cartesian<double>> types. However, the
distances d1,d2,d3 which are supposed to be 0 (because the point Target is
the intersection) are sometimes way off, and the Target point is not correct.
Moreover, when I change the order of the planes in the CGAL::intersection
function, the results sometimes differ. Is that a known bug?

Amir.



Archive powered by MHonArc 2.6.16.

Top of Page