… with new values.
Or you define the shape completely from your data.
You can use the examples from the Collection of examples from discourse.threejs.org 2017 as a template.
see https://hofk.de/main/discourse.threejs/2017/index2017.html

Note that .addAttribute is now .setAttribute