-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
What happened?
Our users can upload their own feature-datasets (Shape, GeoJSON etc) to use as clipping polygons. We currently create our own pre-clipped 3D Tiles but we want to move the clipping into Cesium instead. To test this we set up a sandcastle-demo with a complicated GeoJSON with many points, but we noticed we get very low FPS.
We saw this related PR: #12650, will this improve the performance?
Also, is it possible to add polygons with holes in them for clipping? The GeoJSON used in the sandcastle below contains holes so some data should be visible, but from what I can see it's only possible to add outer rings, not inner rings.
Here's what the GeoJSON looks like:

Reproduction steps
- Create one or more ClippingPolygons with many points, use for example this GeoJSON: https://ocpreleaseeudata001.blob.core.windows.net/support/sweden_4326.geojson
- Add it to the default globe
- Viewer becomes almost unusable, holes are not handled
Sandcastle example
Environment
Browser: Chrome 140.0.7339.207
CesiumJS Version: 1.133.0
Operating System: Fedora Linux 42