Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I would like to have a guide to generate segments of length l distributed randomly without intersection in a defined square field. The end of the loop is fixed by the total length of the right generated. Grateful if someone could help me.
A quick hack is to run a rigid body simulation until you arrive at a frame which looks right. Writing a script to get what you need can be a bit of a puzzle...