fill a prisma with randomly distributed objects
thingiverse
For a design concept I had to fill a prismatic volume with randomly distributed and sized objects. To achieve this, I performed several trigonometric calculations to derive x and y positions from lines dividing two corners so that the crossover point always lies within the triangle. Perhaps there are more sophisticated methods of accomplishing this task, but it works effectively. The next step was to alter the triangle in size depending on the object's size, ensuring that the object remains within the volume. [completed] Now I need to address objects that protrude from the top and bottom. [done] My final goal is to perform some post-calculation to fine-tune overlaps and connections for 3D printing compatibility. [partially completed] Update V2: - Collision detection has been implemented! Objects are now only placed within a certain distance (negative for overlap). Update V3: - A vector rotation is applied every iteration to improve distribution. - Custom seeds have been added for reproducible randomness.
With this file you will be able to print fill a prisma with randomly distributed objects with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on fill a prisma with randomly distributed objects.