[solved] Mouse wheel rotate geometry

I’m completely new to three.js.
For a website, I need to rotate 3d octahedron on scroll. So I choose three.js.
I found this example https://jsfiddle.net/f2Lommf5/2037/ with scroll and three.js, but the scroll move only the camera, and I want the mousewheel change rotation and position of the octahedron.
So I change geometry https://jsfiddle.net/vander2000/x9c1u6vj/2/ and When I try to have action on my octahedron, console tell me my var (cubeA) is not defined. What I do wrong ?

Thanks in advance

Your octahedrons are out of the scope of the function of the rendering loop.

Thank you so much Prisoner849.
I understand my mistake now