center method

void center()

Implementation

void center() {
  computeBoundingBox();

  boundingBox!.getCenter(_bufferGeometryoffset);
  _bufferGeometryoffset.negate();

  translate(_bufferGeometryoffset.x, _bufferGeometryoffset.y, _bufferGeometryoffset.z);
}