How to calculate vertex normals of custom cylinder

It can’t work with NaNs. You may notice a message in the console, that the framework fails with .computeBoundingSphere for your geometry because of NaNs.

Reminded me of this topic: Using NaN in attributes