Polygon Intersection


Is there a Cesium way to determine when a mouse cursor is inside a polygon entity?

I can accomplish with this with some 3rd party libraries, but just curious if this can be done using only the Cesium library.


Hey Brian!

Do you mean, given a 3D position, you want to find out if it’s inside a particular polygon? Or do you mean given a screen position, you want to find out if a polygon is under that? For the latter, check out the drillPick and pick functions.

For some examples, checkout the Picking Sandcastle demo.