Can someone help me on how to make this pattern, especially on a trimmed spherical surface? just like this one

Can someone help me on how to make this pattern, especially on a trimmed spherical surface? just like this one
The trimmed surface part you can probably solve with surface morphs. But the pattern itself i would also be interested how to achieve that! But i could imagine, that it would need a algorithm that builds the pattern progressively.