center method

dynamic center()

Implementation

center() {
  this.computeBoundingBox();

  this.boundingBox!.getCenter(_geometryoffset).negate();

  this.translate(_geometryoffset.x, _geometryoffset.y, _geometryoffset.z);

  return this;
}