Note
Go to the end to download the full example code.
Repeat a unit cell
Import an octet-truss unit cell from a STEP file and repeat it on a
5 x 5 x 5 grid with microgen.repeat_shape().
Requires the CAD backend: pip install microgen[cad].
pv.read(stl_file).plot(smooth_shading=True, split_sharp_edges=True, color="#ef7d2d")

Total running time of the script: (0 minutes 4.929 seconds)