TorusMesh is not defined

Why is it saying this? see my code here: Glitch :・゚✧

  1. You have to define the variable torusMesh.
  2. You have to check in your update() function whether torusMesh is undefined or not. That is necessary since you create the mesh in an onLoad() callback.

Ok Thank you very much this helped a lot, I now have toggle on/off spin for my Torus Mesh see it here: Three js