CesiumGS / cesium-unreal

Bringing the 3D geospatial ecosystem to Unreal Engine
https://cesium.com/platform/cesium-for-unreal/
Apache License 2.0
902 stars 287 forks source link

Set initial points of CesiumCartographicPolygon based on world-coords of screen corners #1351

Open corybarr opened 6 months ago

corybarr commented 6 months ago

When initially creating a CesiumCartographicPolygon in Unreal, I wanted to clip a building. The control corners and verts were outside of the camera bounds:

image

If screen coords with some padding (maybe (0, 0), (0.75, 0), (0.75, 0.75), (0, 0.75)) were projected to world coords, it would allow users of the feature to quickly set up the initial corners based on the camera composition.