CesiumGS / CesiumGS/cesium

Clamp Path to Ground

Open
#7,133 11 comments 0 reactions 0 assignees View on GitHub
category - entity type - enhancement
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

This was [requested on the forum](https://groups.google.com/d/msg/cesium-dev/8R-SkHsbP78/eTVwYj1vBAAJ), to be able to clamp a `Path` to the ground, so clamping the path here for example:

https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=CZML%20Path.html&label=CZML

Initially I thought this might be trivial, as you'd only need to pass the "clampToGround: true" since the `PathGraphics` just uses a polyline anyway, but digging a bit into it, it seems like it might not be so straightforward, since a Polyline and a clamped Polyline are two different primitive types?

Contributor guide

Open the contributing guide

Research direction

Start with the CZML Path Sandcastle example and trace how PathGraphics uses a polyline. Compare that path with the clamped Polyline primitive mentioned in the issue, then determine the changes needed for Path to support ground clamping. Done means the example path can be clamped to the ground without breaking the existing path behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.