CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
13.03k stars 3.51k forks source link

3D MultiLineString penetrate the surface. #11309

Closed guy-j closed 1 year ago

guy-j commented 1 year ago

I try to load geojson (type MultiLineString), Via GeoJsonDataSource.load method.

the polyline that were create has penetrated the surface, I want them to stop at surface height. one position should be above the ground and the other on the ground.

image

I added the code below for reproduce in sandcastle: MultiLineString_Below_Surface.txt

guy-j commented 1 year ago

I would like you to help me find a way to implement my requirements 🤞🏼.

ggetz commented 1 year ago

Hi, maybe try the clampToGround option.

CesiumJS is a big project, so we use GitHub for feature requests and bug tracking exclusively. In the future, please take any questions to the Cesium Forum where there are members of the community and developers from the team who can help. Thanks!