Mesh Builder with smooth lines


Hi all! I am learning mesh builder. And I'm really new to this. I also don't have much skill in JS. I put together a project like this example, but I'm having trouble getting it to be smooth lines and not random triangles. At the bottom of this post there is an explanation of how to make lines smooth. This is a list of changes. Can you help me? i need the full code so i can copy this into scripts. I also need the thickness of these lines to change smoothly. I really hope for your help. Thanks in advance.