multimodalart HF Staff commited on
Commit
36d09d5
·
verified ·
1 Parent(s): 1de78c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -402,13 +402,13 @@ class CameraControl3D(gr.HTML):
402
  azimuthHandle.position.set(AZIMUTH_RADIUS * Math.sin(azRad), 0.05, AZIMUTH_RADIUS * Math.cos(azRad));
403
  elevationHandle.position.set(-0.8, ELEVATION_RADIUS * Math.sin(elRad) + CENTER.y, ELEVATION_RADIUS * Math.cos(elRad));
404
 
405
- const orangeDist = distance + 0.5;
406
  distanceHandle.position.set(
407
  orangeDist * Math.sin(azRad) * Math.cos(elRad),
408
  orangeDist * Math.sin(elRad) + CENTER.y,
409
  orangeDist * Math.cos(azRad) * Math.cos(elRad)
410
  );
411
- distanceLineGeo.setFromPoints([CENTER.clone(), distanceHandle.position.clone()]);
412
 
413
  // Update prompt
414
  const azSnap = snapToNearest(azimuthAngle, azimuthSteps);
 
402
  azimuthHandle.position.set(AZIMUTH_RADIUS * Math.sin(azRad), 0.05, AZIMUTH_RADIUS * Math.cos(azRad));
403
  elevationHandle.position.set(-0.8, ELEVATION_RADIUS * Math.sin(elRad) + CENTER.y, ELEVATION_RADIUS * Math.cos(elRad));
404
 
405
+ const orangeDist = distance - 0.5;
406
  distanceHandle.position.set(
407
  orangeDist * Math.sin(azRad) * Math.cos(elRad),
408
  orangeDist * Math.sin(elRad) + CENTER.y,
409
  orangeDist * Math.cos(azRad) * Math.cos(elRad)
410
  );
411
+ distanceLineGeo.setFromPoints([cameraGroup.position.clone(), CENTER.clone()]);
412
 
413
  // Update prompt
414
  const azSnap = snapToNearest(azimuthAngle, azimuthSteps);