Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: "Oleksiy Busaryev" <>
  • To:
  • Subject: [cgal-discuss] Strange things in the code for streamlines computation
  • Date: Fri, 15 Aug 2008 12:41:47 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=KmpPqcWGI68M1MsQZzi+MUg0k0Ja5DApIndViJuSZCUWLxLAGyUNBM1FZjy3iz6//t NOoxdqOPxl8e8uiApnDqrFB0qG/A5fbRUId/w3HoH4PIHkhBlsmIkFusy2mXLyn2GM40 zUqwDRR04WJDJQ5s6QTRNVYjliLOzQYf+FjW4=

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.



Archive powered by MHonArc 2.6.16.

Top of Page