You didn’t precise that AddTriangle() auto-generates corresponding UVs. It would have been very useful to have a boolean parameter so we can disable this auto-generation. In many cases, it is easier to use AddUV() and to properly set it rather than having to use the auto-generated ones.
Thanks for the feedback - the documentation has been updated, including how to set UV coordinates for the automatically created UV ids. In general, setting the values of the automatically created UV ids will be more performant than manually creating new UV ids. The main reason why you might want to create UV ids manually is if you want a UV seam.