Creates a torus (donut shape) centred at center, lying in
the XZ plane.
Examples
mesh <- generate_torus(major_radius = 2, minor_radius = 0.5)
nrow(mesh$vertices)
#> [1] 512
Creates a torus (donut shape) centred at center, lying in
the XZ plane.
mesh <- generate_torus(major_radius = 2, minor_radius = 0.5)
nrow(mesh$vertices)
#> [1] 512