User Tools


Torus

A three dimensional shape made by revolving a small circle (inner) along the circumference a bigger circle (outer).

 Torus

Learn about torus at MathIsFun.com

A torus is defined as such:

  • Inner Circle
    • ri = inner radius
    • fni = inner resolution
    • roti = inner rotation
  • Outer Circle
    • ro = outer radius
    • fno = outer resolution

Note: See the start of 3D Primitives for information about the resolution of three dimensional shapes.

Defaults:

  • ri : 1
  • fni : 16
  • roti : 0
  • ro : 4
  • fno : 32
torus() 
torus({ ri: 1.5, ro: 3 })
torus({ ri: 0.2 })
 
torus({ fni:4 })           // make inner circle fn = 4 => square
torus({ fni:4,roti:45 })   // rotate inner circle, so flat is top/bottom
torus({ fni:4,fno:4,roti:45 })
torus({ fni:4,fno:5,roti:45 })