I am trying to intersect polygon A with the terrain to create a new polygon (polygon B). Polygon A is a geojson cesium ion asset which covers my entire area of interest as shown below:
I am altering the height of polygon A to simulate flood water level as shown below. The parts of polygon A that appear above the terrain (TerrainProvider is a DEM geotif cesium ion asset) are shown in semi-transparent blue:
Using JS code Is there a way to get the latitude and longitude point geometry (or anything else) of the intersection between the parts of polygon A above the terrain and the terrain itself so I can create a new polygon (polygon B).
Thank you for any help!