setTbRadius method

dynamic setTbRadius(
  1. dynamic value
)
  • Set gizmos radius factor and redraws gizmos
    • @param {Float} value Value of radius factor

Implementation

setTbRadius(value) {
  this.radiusFactor = value;
  this._tbRadius = this.calculateTbRadius(this.camera);

  var curve = new EllipseCurve(0, 0, this._tbRadius, this._tbRadius);
  var points = curve.getPoints(this._curvePts);
  var curveGeometry = new BufferGeometry().setFromPoints(points);

  for (var gizmo in this._gizmos.children) {
    // this._gizmos.children[ gizmo ].geometry = curveGeometry;
    gizmo.geometry = curveGeometry;
  }

  this.dispatchEvent(_changeEvent);
}