With my addon it works. You can find the code there and adapt it for you.
https://hofk.de/main/threejs/sandboxthreef/examplesTHREEf%20r90.html
See Addon. Produces almost infinite many time-varying geometries with functions
See also Generate planes from points
in the Collection of examples from discourse.threejs.org
-> https://hofk.de/main/discourse.threejs/2018/PlanesFromPoints/PlanesFromPoints.html
https://hofk.de/main/discourse.threejs/2019/ColorStripeChanging/ColorStripeChanging.html