Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Strange things in the code for streamlines computation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Strange things in the code for streamlines computation


Chronological Thread 
  • From: Pierre Alliez <>
  • To:
  • Subject: Re: [cgal-discuss] Strange things in the code for streamlines computation
  • Date: Fri, 15 Aug 2008 13:17:45 -0700
  • Organization: INRIA

hi Oleksiy,

did you manage to solve this bug already? if it then works on all your data then please send me the bug fix and I will commit it.

your time on this is greatly appreciate.

Pierre




Oleksiy Busaryev a écrit :
Hello,
I noticed very strange things in the streamlines computation code.
Looks like float/double input values are truncated to int's in a lot of places;
as a result, the streamlines computation works fine for the CGAL example Stream_lines_2
(because the data file datap.tri.cin for this example contains points
with huge coordinate values, e.g. 20000-60000 etc.)
and fails when run on various vector fields with coordinates < 1 (everything is truncated to 0).
For instance, here is the code from CGAL/stream_lines_2.h header:
for (int i=(int) (min_x-separating_distance);i<max_x+(int)
separating_distance;i=i+(int) (fSepStl_seed))

--
Best regards,
Oleksiy Busaryev.


--
Pierre Alliez
INRIA Sophia Antipolis - Mediterranee
http://www-sop.inria.fr/geometrica/team/Pierre.Alliez/
Tel: +33 4 92 38 76 77
Fax: +33 4 97 15 53 95



Archive powered by MHonArc 2.6.16.

Top of Page