In this paper we present a refinement of an algorithm (Pilotti, 1998) to ge
nerate three-dimensional granular media by deposition of spherical grains i
n a viscous fluid. The proposed improvements allow the construction of clas
tic porous media made up of irregular grains, with controlled level of angu
larity, sorting and porosity. On the basis of visual comparison with protot
ypal cross sections and of computed two points correlation functions, we ar
gue that the intergranular void spaces resulting from this procedure provid
e a satisfactory reproduction of the micro-geometry of several clean consol
idated sandstones and can be used to explore the effect of void topology on
the flow field properties.