Open blakeelias opened 6 years ago
I’ll first try to implement a single bottom-up pass, which should work pretty well for non-umbrella models. Then, if I have time, I’ll add a single top-down pass, which will make it work for an umbrella, but not for more complex vertical spirals.
There is plenty of space for optimisation:
Tricky subprograms:
It’s done, I’ll provide a more detailed write up a little later. Long story short: a lot of things can be optimised; making a down-pass will be fantastic.
The bot moves to the center of any grounded subspace of the current layer. The bot fills in the grounded subspace of the current layer. Bot moves to next higher layer. After completing top layer, bot moves down one layer. Bot fills in any new grounded subspace of the current layer that could not be added before. After completing bottom layer, bot moves up one layer. Continue making upward and downward passes until model is complete.
Pseudocode: http://collabedit.com/tv499