# How to make an object from basic volumes?

I'm new to 3d model and I want to create an object from basic volumes like spheres, cylinders, cubes, etc. For instance, I want to make a cube by fitting speheres in. Is there an automatic way of doing this in Blender or any other program?

Edit details: Your answers were so helpful. In addition, what I'm really trying to do is fill an irregular form with other irregular forms. For example, let's say, a house (a cube with a pyramid on top of it) filled with little bottles (like little cylinders). (It's for a 3D printing project). Is this possible to do?

• Could you provide some images of result you are expecting? Jun 19, 2017 at 21:12
• So instead of an 8-vertex cube, you want the same volume filled with spheres? Jun 19, 2017 at 21:13

It's not really automatic but this can be done with the array modifier. Take your object that you want to make a cube out of and then apply three array modifiers. The result:

Going from here we can fill more complex things with the Boolean modifier. Take the mesh you want to fill with stuff and enclose it in the arrayed object. It will look something like this:

Then we use the Boolean modifier to cut out the shape. Giving this:

From here we apply the stack. It't not perfect / ideal / fast, but hopefully this is enough to get you somewhere until someone else has a better idea.

Final:

## Particle system - Volume Grid

For a quick approximation, you could duplicate an object with a particle system.

Select the sphere (cube, cylinder..) add a new Emit particle system that emits from Volume with Grid option enabled.

Then pick your object (in this case a little sphere) in the Render panel of the system like in the following picture:

You may have to adjust the grid resolution/object scale in order to fit them properly.

If you are looking for something more physically accurate than a simple grid, I think the only way I know at the moment is running a simulation.

You can have a look for example at: Settings to fill an open container with objects

Try to use dupliverts to do it.

In Edit Mode subdivide your base object with W-->Subdivide (try to make the even mesh division). In Object Mode parent the object you want to duplicate with the base object with Ctrl+P-->Object (both objects should have the origin points placed in the same position and transformations applied with Ctrl+A). Select the base object, go to Object header-->Duplication panel and set its type to Verts or Faces. Play with their settings. Scale the parented object for different duplicates' size.

To convert the duplicates to meshes press Shift+Ctrl+A.