Here is the text file for OpenScad if you did not find it. Just copy and paste. Then adjust the parameters for your body tube. Still not sure where I got it but thanks to whoever wrote it.
Here's the original post:
https://www.rocketryforum.com/threads/what-are-you-printing-today.150480/post-2081587