A regular $ n$-gon is inscribed in the unit circle centered in $0$. We want to build an "almost" geodesic dome upon it this way: on each side of the $n$-gon we build an equilateral triangle whose dihedral angle with the $n$-gon is such that the distance from $0$ of the upper vertex's projection on the unit circle plane is $(1-1/n)$; over this "first floor" we connect all the upper vertices and we have a new smaller $n$-gon inscribed in the circle with radius $(1-1/n)$, so we repeat the process and this time the distance from $0$ of the upper vertices' projection on the unit circle plane is $(1-2/n)$ and so on. If the limit $n \rightarrow \infty$, which function fits the border of the dome? What is the maximum height?
I tried to solve this way: $n$ fixed and $r < n$, each upper vertex coordinate is
$$ \left( \frac {r+1}{n}, \sum_{m=0}^r \sqrt{ \left( \sqrt{3}\left(1-\frac mn\right)^2 \sin\left(\frac\pi n\right) \right)^2-\frac1{n^2}} \, \right)$$
With $n = 100 $ this is the plot made with Mathematica, but I wasn't able to find that function