avoid creating degenerate planes

This commit is contained in:
Sébastien Loriot 2024-08-20 10:09:23 +02:00
parent e80fe2716c
commit ca2907fbfc
1 changed files with 2 additions and 0 deletions

View File

@ -161,6 +161,8 @@ public:
for(int i=0; i<N; ++i)
{
P c = random_point(), q = random_point();
while(c==q)
q = random_point();
Sph sph(c, CGAL::squared_distance(c, q));
// single point