Skip to content

Commit

Permalink
docs(shapewidgetexample): fix ellipse coverage in oblique mode
Browse files Browse the repository at this point in the history
  • Loading branch information
finetjul authored and floryst committed Jan 2, 2025
1 parent 96a2643 commit 66a6cdb
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Sources/Widgets/Widgets3D/ShapeWidget/example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,22 +354,16 @@ reader
const maxRadius = Math.ceil(Math.max(ijkRadius[0], ijkRadius[1]));
const ellipseBounds = [
-maxRadius,
0,
-maxRadius,
0,
maxRadius,
0,
0,
maxRadius,
0,
-maxRadius,
0,
0,
maxRadius,
0,
(-maxRadius * Math.sqrt(2)) / 2,
(-maxRadius * Math.sqrt(2)) / 2,
0,
(maxRadius * Math.sqrt(2)) / 2,
(maxRadius * Math.sqrt(2)) / 2,
maxRadius,
-maxRadius,
0,
];
ijkToWorldMatrix.apply(ellipseBounds);
Expand Down

0 comments on commit 66a6cdb

Please sign in to comment.