setAttribute method
Sets an attribute to this geometry. Use this rather than the attributes property, because an internal hashmap of .attributes is maintained to speed up iterating over attributes.
name
of the attribute.attribute
the atribute data.
Implementation
BufferGeometry setAttribute(String name, BufferAttribute attribute) {
attributes[name] = attribute;
return this;
}