Subject: CGAL users discussion list
List archive
- 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))
separating_distance;i=i+(int) (fSepStl_seed))
--
Best regards,
Oleksiy Busaryev.
- [cgal-discuss] Strange things in the code for streamlines computation, Oleksiy Busaryev, 08/15/2008
- Re: [cgal-discuss] Strange things in the code for streamlines computation, Pierre Alliez, 08/15/2008
Archive powered by MHonArc 2.6.16.