mirror of https://github.com/CGAL/cgal
Use cross product instead of Plane_Plane intersection line
This commit is contained in:
parent
3d44e3f14d
commit
9cdf8ba469
|
|
@ -173,11 +173,9 @@ Sphere_point<R> intersection(const Sphere_circle<R>& c1,
|
||||||
|c1| and |c2|. \precond |c1 != c2| as sets.}*/
|
|c1| and |c2|. \precond |c1 != c2| as sets.}*/
|
||||||
{
|
{
|
||||||
CGAL_assertion(!equal_as_sets(c1,c2));
|
CGAL_assertion(!equal_as_sets(c1,c2));
|
||||||
typename R::Line_3 lres;
|
|
||||||
CGAL_NEF_TRACEN("circle_intersection "<<c1<<" "<<c2);
|
CGAL_NEF_TRACEN("circle_intersection "<<c1<<" "<<c2);
|
||||||
CGAL::Object o = CGAL::intersection(c1.plane(),c2.plane());
|
return R().construct_cross_product_vector_3_object()(
|
||||||
if ( !CGAL::assign(lres,o) ) CGAL_error();
|
c1.orthogonal_vector(), c2.orthogonal_vector());
|
||||||
return CGAL::ORIGIN + lres.direction().vector();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue