Cell-Circle Intersection Finder

5

SP4CEBAR 2024-12-07 21:02 (Edited)

Planet terrain!


Demo controls

History

This algorithm shares some similarities with a marching squares algorithm

Bug log:

Based on

Predecessors


SP4CEBAR 2024-12-07 21:42

Update:
- flipped the bottom half's cells so that the inside of the border cells are all filled


SP4CEBAR 2024-12-07 21:44

It looks funny when you make the circle tiny: the algorithm somehow still manages to make a continuous circle!


Sylveon 2024-12-08 00:18

Very cool SPACE4BAR!


SP4CEBAR 2024-12-09 17:24

I can improve the upper half and bottom half transition by looking at the X flip of the cells instead of a threshold Y coordinate value


Sylveon 2024-12-09 19:03

Wait, it only uses 25 characters :3


Log in to reply.