get method

BufferGeometry get(
  1. dynamic object,
  2. BufferGeometry geometry
)

Implementation

BufferGeometry get(object, BufferGeometry geometry) {
  if (geometries[geometry.id] == true) return geometry;

  geometry.addEventListener('dispose', onGeometryDispose);

  geometries[geometry.id] = true;

  info.memory["geometries"] = info.memory["geometries"]! + 1;

  return geometry;
}