How to load only 3dtiles inside the polygon?

Yes, ClippingPlaneCollection is the right keyword here.

There are some degrees of freedom for the implementation. But the basic approach would be:

  • Define the polygon
  • Create one clipping plane for each side of the polygon
  • Combine them into a clipping plane collection (important: unionClippingRegions must be true)
  • Assign that clipping plane collection to the tileset

Here is an example that shows the basic approach, with an example tileset:

(Updated 2023-10-17 for new tileset creation API)

But again: Note that this only visually clips away the parts outside the polygon region. It may not always affect the loading performance. (It might, but I’m not 100% sure about that…)

1 Like