I have created a 3d box (2050, 700, 650) with python and I have 3 panels inside of it, which divide the box in 3 smaller boxes. Inside the middle box I want to create random placed spheres. So far in order to create the box, the panels, the spheres etc I use a library called smoldyn.
For example its sphere object can be defined like this: sph1 = smoldyn.Sphere(center=[1162, 563, 569], radius=5, slices=50, stacks=50), where you can see the center, radius, slices, stacks etc. I could do it manually and write countless lines of code but is hard and very time consuming.
How can I create randomly placed spheres in the middle part of my big box?
Thank you !
Aucun commentaire:
Enregistrer un commentaire