From 428fed6e7ff36486ad54f500f13b10bd1eb60eaa Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" Date: Fri, 3 Jan 2025 17:25:46 +0100 Subject: [PATCH] BoxDrawing: construct valid Plane The debug asserts in Cesium wants the Plane to have a valid normal, so init with UNIT_X. --- lib/Models/BoxDrawing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Models/BoxDrawing.ts b/lib/Models/BoxDrawing.ts index 16337d30360..00eb3520572 100644 --- a/lib/Models/BoxDrawing.ts +++ b/lib/Models/BoxDrawing.ts @@ -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