Texture mapping on a custom geometry

Look at the code of the circle.

In the
Collection of examples from discourse.threejs.org
other examples:

RoundedRectangle

SlicedConeMergedGeometry

UVgenerator

TetrahedronSpecificUVs

SphereWithoutTrigonometry