Skip to content

Commit

Permalink
BoxDrawing: construct valid Plane
Browse files Browse the repository at this point in the history
The debug asserts in Cesium
wants the Plane to have
a valid normal, so init with
UNIT_X.
  • Loading branch information
pjonsson committed Jan 3, 2025
1 parent 2d56405 commit 428fed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Models/BoxDrawing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ export default class BoxDrawing {
*/
private createSide(planeLocal: Plane): Side {
const scene = this.scene;
const plane = new Plane(new Cartesian3(), 0);
const plane = new Plane(Cartesian3.UNIT_X, 0);
const planeDimensions = new Cartesian3();
const normalAxis = planeLocal.normal.x
? Axis.X
Expand Down

0 comments on commit 428fed6

Please sign in to comment.