Prepares GCODE files to 3D-Print Porous Shapes


Updated 20 Nov 2019

View License

3D-printing is a powerful manufacturing tool which can create precise microscale architectures across macroscale geometries from various materials. Within biomedical research, 3D-printing has been used to fabricate rigid scaffolds for cell and tissue engineering constructs, where the precise microarchitecture has direct effects on behavior and function of the construct. While 3D-printing hardware has become low-cost due to modeling and rapid prototyping applications, there is no common paradigm or platform for the controlled design and manufacture of 3D-printed constructs for tissue engineering. Specifically, controlling the tissue engineering features of pore size, porosity, and pore arrangement is difficult in currently available software. We have developed a MATLAB approach (scafSLICR) to design and manufacture tissue-engineered scaffolds with precise microarchitecture and with simple options to enable spatially patterning pore properties. Using scafSLICR, we designed, manufactured, and characterized tissue engineering scaffolds in ABS with a variety of pore sizes, porosities, and gradients thereof with a high degree of accuracy. We found that transitions between different porous regions maintained an open, connected porous network without compromising mechanical integrity. Further, we demonstrate the usefulness of scafSLICR in patterning different porous designs throughout large anatomic shapes and in preparing craniofacial tissue engineering bone scaffolds. Finally, scafSLICR is distributed as MATLAB scripts and as in a stand-alone graphical interface.

Authors: Ethan Nyberg, Aine O'Sullivan, and Warren Grayson

Liu K, Tovar A. MATLAB 3D-Plot [Internet]. Git Hub. 2016. Available from:
Aitkenhead AH. MATLAB STL Import [Internet]. Mathworks. 2013 [cited 2018 Jul 1]. Available from:

Cite As

Ethan Nyberg (2023). scafSLICR (, MATLAB Central File Exchange. Retrieved .

Nyberg E, O’Sullivan A, Grayson W (2019) scafSLICR: A MATLAB-based slicing algorithm to enable 3D-printing of tissue engineering scaffolds with heterogeneous porous microarchitecture. PLoS ONE 14(11): e0225007.

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Mesh voxelisation

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

zip file upload


To match version in publication