diff --git a/Sources/Widgets/Widgets3D/ShapeWidget/behavior.js b/Sources/Widgets/Widgets3D/ShapeWidget/behavior.js index 384a1605fce..5eefcc6e42d 100644 --- a/Sources/Widgets/Widgets3D/ShapeWidget/behavior.js +++ b/Sources/Widgets/Widgets3D/ShapeWidget/behavior.js @@ -475,6 +475,9 @@ export default function widgetBehavior(publicAPI, model) { const up = model._camera.getViewUp(); const right = []; vec3.cross(right, up, normal); + vtkMath.normalize(right); + vec3.cross(up, normal, right); + vtkMath.normalize(up); model.shapeHandle.setUp(up); model.shapeHandle.setRight(right); model.shapeHandle.setDirection(normal);