Randomly generated cubes in cylindrical volumes in MATLAB
Show older comments
Hey
I want to generate n cubes of a given side length at any position within a given cylinder volume. Following the condition of not intersecting each other.
Can someone help me with this.
Regards
Om
5 Comments
Image Analyst
on 23 Sep 2023
What form do you want the output in? A 3-D array where 0 is air and 1 is a cube? What resolution do you need? Do you want to drop them in from above? Or just randomly place them one-by-one at a random location wherever they might fit?
Walter Roberson
on 23 Sep 2023
Any particular orientation?
hongtao xu
on 25 Sep 2023
hongtao xu
on 25 Sep 2023
hongtao xu
on 26 Sep 2023
Accepted Answer
More Answers (0)
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
