In the document the third parameter arrayName of createBufferFromArray is said to be string type, but is not mentioned why we are giving this parameter.
So I checked attribute.js and found that this parameter is used to definite another boolean isIndice.
I think it was probably my mistake to make that function public but if you want to make arrayName optional, or give it a default of "" that's fine with me.
In the document the third parameter
arrayName
ofcreateBufferFromArray
is said to bestring
type, but is not mentioned why we are giving this parameter.So I checked
attribute.js
and found that this parameter is used to definite another booleanisIndice
.I am just wondering if this parameter will be better if we change it to boolean type and make it optional (to me it's easier to understand)?