get method

BufferGeometry get(
  1. BufferGeometry geometry
)

Implementation

BufferGeometry get(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;
}