Porous scaffold log pile design

Hi! I am currently doing my Master's final project, which will consist of a 3D printed scaffold for tissue regeneration.
As so, I need to design in Solidworks the scaffold using a design similar to the photos attached.  However, I'm not sure how to do that, do I need to do it layer-by-layer and then extrude it or there is a simpler method?

Thanks in advance!