Skip to content

Commit 66a6cdb

Browse files
finetjulfloryst
authored andcommitted
docs(shapewidgetexample): fix ellipse coverage in oblique mode
1 parent 96a2643 commit 66a6cdb

File tree

1 file changed

+4
-10
lines changed
  • Sources/Widgets/Widgets3D/ShapeWidget/example

1 file changed

+4
-10
lines changed

Sources/Widgets/Widgets3D/ShapeWidget/example/index.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -354,22 +354,16 @@ reader
354354
const maxRadius = Math.ceil(Math.max(ijkRadius[0], ijkRadius[1]));
355355
const ellipseBounds = [
356356
-maxRadius,
357-
0,
357+
-maxRadius,
358358
0,
359359
maxRadius,
360-
0,
361-
0,
360+
maxRadius,
362361
0,
363362
-maxRadius,
364-
0,
365-
0,
366363
maxRadius,
367364
0,
368-
(-maxRadius * Math.sqrt(2)) / 2,
369-
(-maxRadius * Math.sqrt(2)) / 2,
370-
0,
371-
(maxRadius * Math.sqrt(2)) / 2,
372-
(maxRadius * Math.sqrt(2)) / 2,
365+
maxRadius,
366+
-maxRadius,
373367
0,
374368
];
375369
ijkToWorldMatrix.apply(ellipseBounds);

0 commit comments

Comments
 (0)