setTbRadius method

dynamic setTbRadius(
  1. dynamic value
)

Set gizmos radius factor and redraws gizmos @param {Float} value Value of radius factor

Implementation

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

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

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

  dispatchEvent(_changeEvent);
}