setAttributeFromString method

BufferGeometry setAttributeFromString(
  1. String type,
  2. dynamic source
)
inherited

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.

Implementation

BufferGeometry setAttributeFromString(String type, source) {
  attributes[type] = source;
  return this;
}