When I change the shape of the geometry it seems that the shadow misbehaves
(there is a slight gap on the bottom of the poles, but I assume that is my shadowbias not being set properly.)
The initial state of the mesh is as follows, which is correct. In the code behind the generation of the mesh, I am resizing the parameters and generating a new object to render using threejs.
As you can see, the resulting mesh after resizing has a wrong shadow, and the way it seems to me this has nothing to do with shadowbias. Does anyone know what could be going on?