Why is this tubeGeometry created strangely?

codesandbox

in blender this model has 28 vertexs.

When I use points.length = 14 can achieve the desired effect

But I think there’s a problem.

But I don’t know what the reason is and how to solve it.