center method

void center()
inherited

Implementation

void center() {
  computeBoundingBox();

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

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