I saw this Reddit post and decide to try this equations with Babylon JS. https://www.reddit.com/r/theydidthemath/comments/bvxisg/offsite_rtheydidthemath_of_d_sized_cups/
Here is the final result after tweaking the equation:
Feel free to change global parameters to try different variants of the plot. Enjoy