Bridge text want in threejs

Trigonometry can help :thinking:

  1. Center a text on X-axis, coumpute its geometry’s bounding box, get box’s size.
  2. Having arc’s height and the text size, find arc’s radius by the equation for the circumcirle of isosceles triangle: (a * a) / sqrt(4 * a * a - b * b), where a and b are sides of the triangle.
  3. Set Y-coordinate of each geometry’s vertex, interpolating it, having the circumcirle radius and vertex’ X-coordinate.

5 Likes