Help support this project by starring the repo on GitHub!
fps
min
max

Overview

This example demonstrates createTorusTopology, a closed donut surface that is periodic in both axes.

The torus parametrizes its surface by (u, v) in [0, 1):

  • u goes around the major circle (the ring of the donut), and
  • v goes around the tube cross-section.

Both axes wrap, so every tile has a same-level neighbor. Because the major circumference is typically much longer than the tube circumference, the topology seeds a baseU × baseV grid of level-0 roots (baseU = round(major/minor), baseV = 1) so each root tile is approximately square in world space before isotropic LOD subdivision.

On this page