Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Bug in CGAL::sibson_natural_neighbor_coordinates_3(...)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Bug in CGAL::sibson_natural_neighbor_coordinates_3(...)


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] Bug in CGAL::sibson_natural_neighbor_coordinates_3(...)
  • Date: Mon, 23 Jul 2007 16:58:26 +0200
  • Organization: INRIA


a écrit :
Hi CGAL developers,

I found that the computation of Sibson's natural neighbor coordinates in 3D
returns a normalization value that is one unit too large. I have a workaround
in my part of the code, yet I think it should be fixed in CGAL. Please let me
know if feedback like this is appreciated and will be considered.

Best regards,

Tom Bobach


Source: CGAL-3.3.tar.gz


diff -Nau natural_neighbor_coordinates_3.h_orig
natural_neighbor_coordinates_3.h
--- natural_neighbor_coordinates_3.h_orig 2007-06-27 11:06:48.000000000
+0200
+++ natural_neighbor_coordinates_3.h 2007-06-27 11:06:14.000000000 +0200
@@ -268,7 +268,7 @@
}
}
}
- norm_coeff=1;
+ norm_coeff=0;
for (coor_it = coordinate.begin();
coor_it != coordinate.end();
++coor_it)


Thank you Tom. It makes total sense.
I have integrated your fix for 3.3.1.

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



  • Re: [cgal-discuss] Bug in CGAL::sibson_natural_neighbor_coordinates_3(...), Sylvain Pion, 07/23/2007

Archive powered by MHonArc 2.6.16.

Top of Page