Welcome! Log In Create A New Profile

Advanced
Re: T-Junctions re-visited
March 20, 2013 03:56AM
Hi Travis,

Unless I'm misunderstanding something, I think your rounding algorithm has a mistake. It will round 0.018 to 1 rather than 2 as desired. I would have thought TRE_VERTEX_KEY_ROUNDUP should just be 0.5f.

Also, for negative numbers it appears that (long) may round up rather than down so that

#define iround(x) (x<0)?((int)(x-0.5)):((int)(x+0.5))

is better

Tim

Edited 1 time(s). Last edit at 2013-03-20 04:03AM by Tim Gould.
SubjectAuthorViewsPosted
T-Junctions re-visited Travis Cobbs1106March 11, 2013 10:38PM
Re: T-Junctions re-visited Tim Gould585March 11, 2013 11:31PM
Re: T-Junctions re-visited Roland Melkert488March 12, 2013 11:17AM
Re: T-Junctions re-visited Ben Supnik519March 12, 2013 11:17AM
Re: T-Junctions re-visited Roland Melkert496March 12, 2013 11:22AM
Re: T-Junctions re-visited Ben Supnik479March 12, 2013 11:32AM
Re: T-Junctions re-visited Roland Melkert474March 12, 2013 11:41AM
Re: T-Junctions re-visited Ben Supnik472March 12, 2013 11:55AM
Re: T-Junctions re-visited Roland Melkert481March 13, 2013 10:08AM
Re: T-Junctions re-visited Travis Cobbs502March 13, 2013 11:27AM
Re: T-Junctions re-visited Allen Smith503March 12, 2013 02:01PM
Re: T-Junctions re-visited Michael Heidemann497March 13, 2013 09:27AM
Re: T-Junctions re-visited Ben Supnik474March 13, 2013 10:37AM
Re: T-Junctions re-visited Tim Gould482March 13, 2013 02:31PM
Re: T-Junctions re-visited Michael Heidemann466March 13, 2013 03:42PM
Re: T-Junctions re-visited Michael Heidemann491March 17, 2013 04:35AM
Re: T-Junctions re-visited Ben Supnik431March 17, 2013 08:43AM
Re: T-Junctions re-visited Michael Heidemann438March 17, 2013 08:59AM
Re: T-Junctions re-visited Ben Supnik413March 17, 2013 09:02AM
Re: T-Junctions re-visited Magnus Forsberg448March 17, 2013 09:15AM
Re: T-Junctions re-visited Travis Cobbs508March 17, 2013 10:09PM
Re: T-Junctions re-visited Ben Supnik491March 18, 2013 07:30AM
Re: T-Junctions re-visited Travis Cobbs489March 18, 2013 10:57AM
Re: T-Junctions re-visited Ben Supnik485March 18, 2013 11:27AM
Re: T-Junctions re-visited Travis Cobbs468March 18, 2013 12:23PM
Re: T-Junctions re-visited Ben Supnik561March 18, 2013 01:41PM
Re: T-Junctions re-visited Roland Melkert560March 18, 2013 02:51PM
Re: T-Junctions re-visited Travis Cobbs545March 18, 2013 02:59PM
Re: T-Junctions re-visited Roland Melkert596March 18, 2013 03:41PM
Re: T-Junctions re-visited Ben Supnik598March 18, 2013 06:09PM
Re: T-Junctions re-visited Roland Melkert536March 19, 2013 11:38AM
Re: T-Junctions re-visited Ben Supnik531March 19, 2013 11:43AM
Re: T-Junctions re-visited Roland Melkert564March 19, 2013 07:07PM
Re: T-Junctions re-visited Travis Cobbs560March 19, 2013 10:13PM
Re: T-Junctions re-visited Tim Gould552March 20, 2013 03:56AM
Re: T-Junctions re-visited Travis Cobbs513March 20, 2013 10:13AM
Re: T-Junctions re-visited Ben Supnik519March 20, 2013 10:23AM
Re: T-Junctions re-visited Travis Cobbs559March 20, 2013 10:29AM
Re: T-Junctions re-visited Travis Cobbs506March 20, 2013 10:26AM
Re: T-Junctions re-visited Ben Supnik482March 20, 2013 11:18AM
Re: T-Junctions re-visited Ben Supnik492March 20, 2013 06:42AM
Re: T-Junctions re-visited Roland Melkert479March 20, 2013 11:36AM
Re: T-Junctions re-visited Philippe Hurbain504March 20, 2013 06:36AM
Re: T-Junctions re-visited Ben Supnik514March 20, 2013 06:58AM
Re: T-Junctions re-visited Allen Smith575March 20, 2013 09:08AM
Re: T-Junctions re-visited Roland Melkert646March 20, 2013 11:35AM
Re: T-Junctions re-visited Ben Supnik1057March 20, 2013 11:50AM
Re: T-Junctions re-visited Michael Heidemann559March 18, 2013 03:54PM
Re: T-Junctions re-visited Roland Melkert475March 13, 2013 10:03AM
Re: T-Junctions re-visited Tim Gould439March 13, 2013 03:56PM
Re: T-Junctions re-visited Sergio Reano433March 13, 2013 03:51PM
Re: T-Junctions re-visited Roland Melkert512March 13, 2013 04:36PM
Re: T-Junctions re-visited Tim Gould451March 13, 2013 05:10PM
Re: T-Junctions re-visited Ben Supnik551March 14, 2013 08:17PM
Re: T-Junctions re-visited Tim Gould580March 14, 2013 08:41PM
Re: T-Junctions re-visited Ben Supnik519March 15, 2013 10:56AM
Re: T-Junctions re-visited Roland Melkert493March 15, 2013 11:36AM
Re: T-Junctions re-visited Ben Supnik417March 13, 2013 06:58PM
Re: T-Junctions re-visited Roland Melkert432March 13, 2013 07:27PM
Re: T-Junctions re-visited Ben Supnik419March 13, 2013 07:37PM
Re: T-Junctions re-visited Roland Melkert490March 13, 2013 07:59PM
Re: T-Junctions re-visited Ben Supnik492March 13, 2013 08:18PM
Re: T-Junctions re-visited Travis Cobbs587March 14, 2013 03:23PM
Re: T-Junctions re-visited Roland Melkert591March 14, 2013 03:34PM
Re: T-Junctions re-visited Tim Gould565March 14, 2013 03:41PM
Re: T-Junctions re-visited Roland Melkert537March 15, 2013 11:33AM
Re: T-Junctions re-visited Tim Gould467March 13, 2013 07:43PM
Re: T-Junctions re-visited Roland Melkert482March 13, 2013 08:08PM
Re: T-Junctions re-visited Tim Gould503March 13, 2013 08:18PM
Re: T-Junctions re-visited Ben Supnik584March 14, 2013 08:15PM
Re: T-Junctions re-visited Roland Melkert557March 15, 2013 11:29AM
Re: T-Junctions re-visited Travis Cobbs505March 15, 2013 12:27PM
Re: T-Junctions re-visited Ben Supnik495March 15, 2013 05:08PM
Re: T-Junctions re-visited Travis Cobbs519March 16, 2013 11:29PM
Re: T-Junctions re-visited Ben Supnik443March 17, 2013 08:58AM
Re: T-Junctions re-visited Roland Melkert425March 17, 2013 12:35PM
Re: T-Junctions re-visited Travis Cobbs459March 18, 2013 12:28PM
Re: T-Junctions re-visited Travis Cobbs581March 18, 2013 12:32PM
Re: T-Junctions re-visited Roland Melkert525March 18, 2013 05:00PM
Re: T-Junctions re-visited Travis Cobbs571March 18, 2013 11:05PM
Re: T-Junctions re-visited Roland Melkert628March 19, 2013 11:38AM
Re: T-Junctions re-visited Sergio Reano554March 26, 2013 02:46PM
Re: T-Junctions re-visited Roland Melkert465March 27, 2013 11:19AM
Re: T-Junctions re-visited Sergio Reano569March 27, 2013 01:48PM



Sorry, only registered users may post in this forum.

Click here to login