Turn draped rectangles by an optional rotation, and drape image fills in the Cesium port

A rectangle shape gains an optional rotation: radians counter-clockwise,
turning it about its centre in longitude and latitude, as a KML ground
overlay turns; an image fill turns with it. A renderer that predates it
draws the rectangle unturned. The Cesium draw port passes it as the
rectangle's rotation and texture rotation, and now drapes image fills on
clamped shapes, each on a ground primitive of its own that owns its
material, where it refused them before. Hidden image fills are not built
until they show. The stub picks draped rectangles, turned and across the
antimeridian, and a conformance check picks a quarter-turned overlay on
both renderers. The KML importer still draws its overlays itself.
This commit is contained in:
Sameh Khamis committed 2026-11-07 21:49:34 -08:00
1 parent 7ad65b2e87
commit 6286bcfb07
9 files changed
+331 -14

No files matched your search

+7 -2
View File
@@ -281,8 +281,13 @@ export type ShapeGeometry =
/** Only part of the ellipse, radians from north. */
arc?: { start: number; end: number };
}
/** `height`: metres above the ellipsoid, for a rectangle not clamped. */
| { kind: 'rectangle'; rect: GeoRect; height?: number }
/**
* `height`: metres above the ellipsoid, for a rectangle not clamped.
* `rotation`: radians counter-clockwise, turning the rectangle about its
* centre in longitude and latitude (as a KML ground overlay turns); an
* image fill turns with it.
*/
| { kind: 'rectangle'; rect: GeoRect; height?: number; rotation?: number }
| {
kind: 'box';
center: Position;