Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fill point maximum
#20
Doesn't have to be a perfect fill. There are two types of fill:

E W N S and:
E W N S NE NW SE SW

Code:
With Heckbert fill you are reasonably safe with a number of stack entries equal to 4*biggest_dimension_of_the_array (2560 entries for a 640x480 screen).

I think you have to take into account both arrays. Are you talking abut a diamond fill?: (x ^ 2 + y ^ 2)^.5 * 4

Hilbert curve? Wow, that looks like what I had in mind - something wiggly and squiggly! Neat!

Quote:For the same algorithm , changing the stack to a FIFO queue reduces a lot the need for stack space...

You could probably do some reasoning to find an exact figure, but you should base it in the algorithm used.

I can post the fill benchmark i did if you are interested.

Hmm.. can elaborate some more on a FIFO queue...? Just an optimization, or reduces stack entries?

Fill benchmark isn't necessary as my fill isn't really a fill, it's a pathfinding program (which for these purposes isn't the same thing) that works on arrays not on the screen...

This Hilbert curve is just what I'm looking for!
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply


Messages In This Thread
fill point maximum - by Agamemnus - 02-17-2004, 09:46 PM
fill point maximum - by Agamemnus - 02-18-2004, 05:02 AM
fill point maximum - by broan496 - 02-18-2004, 05:11 AM
fill point maximum - by PlayGGY - 02-21-2004, 11:21 AM
fill point maximum - by KiZ - 02-21-2004, 05:56 PM
fill point maximum - by Agamemnus - 02-21-2004, 07:19 PM
fill point maximum - by Antoni Gual - 02-22-2004, 02:14 AM
fill point maximum - by Agamemnus - 02-22-2004, 02:22 AM
fill point maximum - by PlayGGY - 02-22-2004, 07:31 AM
fill point maximum - by Agamemnus - 02-22-2004, 08:12 PM
fill point maximum - by PlayGGY - 02-22-2004, 09:47 PM
fill point maximum - by Agamemnus - 02-22-2004, 11:25 PM
fill point maximum - by Antoni Gual - 02-23-2004, 01:55 AM
fill point maximum - by Agamemnus - 02-23-2004, 04:17 AM
fill point maximum - by Antoni Gual - 02-23-2004, 02:27 PM
fill point maximum - by Agamemnus - 02-23-2004, 06:59 PM
fill point maximum - by Antoni Gual - 02-23-2004, 07:58 PM
fill point maximum - by Agamemnus - 02-23-2004, 08:15 PM
fill point maximum - by Agamemnus - 02-24-2004, 05:59 AM
fill point maximum - by Antoni Gual - 02-24-2004, 03:22 PM
fill point maximum - by Agamemnus - 02-25-2004, 12:30 AM
fill point maximum - by Antoni Gual - 02-25-2004, 02:52 AM
fill point maximum - by Antoni Gual - 02-24-2004, 01:19 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)