mirror of https://github.com/CGAL/cgal
avoid creating degenerate planes
This commit is contained in:
parent
e80fe2716c
commit
ca2907fbfc
|
|
@ -161,6 +161,8 @@ public:
|
||||||
for(int i=0; i<N; ++i)
|
for(int i=0; i<N; ++i)
|
||||||
{
|
{
|
||||||
P c = random_point(), q = random_point();
|
P c = random_point(), q = random_point();
|
||||||
|
while(c==q)
|
||||||
|
q = random_point();
|
||||||
Sph sph(c, CGAL::squared_distance(c, q));
|
Sph sph(c, CGAL::squared_distance(c, q));
|
||||||
|
|
||||||
// single point
|
// single point
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue