its all about math, that is every shape and curve has a specific equation or combinations of multi equations.
if you want to draw this on dynamo , you have to draw the basic zigzagged line which have basically sinusoidal shape
then turn them to solid with specific height and copy it to layers, every layer has it’s own values and constants …etc.