Open febrilebrain opened 2 years ago
Hi,
This repository is under MIT License, which means you can do almost everyting with those code as long as you mentioned me or this repository. And it's my pleasure to offer you any help.
I wrote this several years ago, and some of it's implementation are not well designed (can even have some bugs). I use randomDecision
to pick next path for a vertex: follow it's original direction, perpendicular to it's original direction, or both. For example, in [[np.array(mainDirection),1], [-np.array(mainDirection),-1]]
, np.array(mainDirection)
merely stores it's new direction, I need a connectionInt
to help me identify whether it is following it's original direction or perpendicular direction, in this case '1' for original direction ('-2' for reverse perpendicular direction).
As for procedural city generation, I recommend you reading josauder's procedural_city_generation. He wrote a documentation which I think might be a good reference for city generation.
Good luck!
Thanks a lot. I have a few more questions.
Thanks again. There's also another thing, in case you remember: When I plot verticesNext using plotlines in the loop vs plotting verticesAll outside, there is some disparity in the connections. I can't quite figure out why that is. Shouldn't verticesAll contain all the connections?
Sorry, I really cannot remeber the details. Maybe those verticesNext were not merged to verticesAll?
Hello,
First of all, I'd like to request your permission to use and modify your code. It's quite useful for my master's thesis. Secondly, could you explain why you are making the distinction in the assignment of directions in getOriginalDirection (lines 28-38) in direction.py? What is the purpose of connectionInt?
Thank you very much