update method

dynamic update(
  1. dynamic geometry
)

Implementation

update(geometry) {
  if (this.geometries.has(geometry) == false) {
    // var disposeCallback = onGeometryDispose.bind( this );

    // this.geometries.set( geometry, onGeometryDispose );

    this.info.memory["geometries"]++;

    // geometry.addEventListener( 'dispose', onGeometryDispose );

  }

  var geometryAttributes = geometry.attributes;

  for (var name in geometryAttributes.keys) {
    this.attributes.update(geometryAttributes[name]);
  }

  var index = geometry.index;

  if (index != null) {
    this.attributes.update(index, true);
  }
}