MATLAB: How generate a prism with a fibres random distributions inside in Matlab

volume randomdistribution prism

Hi!i need to solve this problem:
I have a prism 150x150x550mm made of concrete plus 1715 steel fibres spread inside. Each fibre has a cylindrical shape with circular section of 0,8 mm and 55mm in length.
The question is: how many fibres i theoretically expected to see if i cut the prism in the mid section (150x150mm)? If i suppose to have a fibres uniform distribution the problem is easy to solve without matlab but i would CONSIDER A FIBRES RANDOM DISTRIBUTION.
i think have to follow these steps in matlab: -create the prism -allocate 1715 point randomly inside the prism (each one for each fibre) -give shape and volume to the fibres -give randomly directions to the fibres (the direction should be whichever in the space) -give 2 constraints: 1) each fibre cannot overlap another one and 2) the fibres cannot go out from the prism -finally, calculate the number of fibres in the prism midsection
Somebody can help me?Even a simplify script should be great! Thanks

Best Answer

Try streamline().