CesiumGS / CesiumGS/cesium

Large corridor clipped on the edge of the globe

Open
#7,627 3 comments 0 reactions 0 assignees View on GitHub
category - polygons/geometry type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

[Sandcastle](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/#c=vVb7bxo5EP5XLH4pVMTYu+t9HYkuCqR3Uq+p0rSqFNBps2vAumWNbENCIv73m31DHlXvDp2RYD0vfzPzjZdNpNBG8Huu0CnK+D264Fqsl/hbIeu+i4vthcxMJDKu3vV+mWQb8NExzzi4lL642IIq/+TqWEqVaNDfPj2EJ47teh6zseN6zHEJtfpoG574sLMdHBDX9WwaeEEfPYYOYyRgFHuWy4jNgl0fTTJ0sCAispnjERdTyw4ci9mBW0R0qOX6LpzD4DifeczrP4a2TRmhPmaeT33HY2zXfy0iDXzPsRm2bIsCMscP8pDohAVOAG6YOaC1CLFylJQ6gUMCHFDLJ55LPXs3rQpzLxKzOA0Anx/Y2PYti3o+cSut3ETpiOsYKvNUo1hJLYyQmQ7RbVW4WzLt1490iqYN4iJ6WP40wgUX84UJEWkk/MGodcKT315oNlwZ/nAp1TIyKGy6vSfFo/Hl+dePN41LLBV0/ma74o39RSPC11dfP43Go9J4V1CgOCcngVBxyj9wuTzk1kUj50Ztu09tO4BFhqvwwDgCaFpEmd1taoMf+m2h8HZ/89jb666KErGGsjJSLEwqlL0G5mCAEj4DZiOz4EV30EykKZpX4NpkcvHLVOokfs+0ibKYt8nUEQ6TkUqJRKom95YQLe7IGCXu1pA1NGi/ODKVCj2Ll7bBagzntX8XMu4jgln+BU8Uk14dbveiFMUI45USS2DjhmscJUl376zPtWa/YfNnZ+eQ60rtNSJarXikcoND/OM0FSstRfJlrWYRQG/sur0aYIkQGlUXD0UaNTBB874cLVFB+JkG1bDRj7tTJdoMaDswLSvxTMnliM8V5/pcqWjbvX1+vfz8OqGk6JSTf/+nMOyIYeBWJP8uyrRhdXFjQf2sahIr+evX0Weu6n4VDG9pgb+Nr2/G3/+8vLr+4/wmj7Erj3htaI42MDAs1aD8wyF5bTxqnlYVeGs03q5BPhpvjAVcn8Jsy3kon9tXdLEXFeSmQpXvwUXzP/I9OArdA3a8KMcg+9t8zxdQnSsBb5rwgJX4w/V4/Kmyqxn3fjDJOv3OUJttys9K3a9iuZLKoLVKuxgPDF+uUgipB3fr+C9ucKx17joc1E7DRGyQSE4nnWf/5iYdFKeR1qCZrdP0i3jkk87ZcAD2B26phBdpNr+CaU2jbW6yoGcfSyHGeDiA7UsvI2V6F6m9iH8D)

[Forum thread](https://groups.google.com/d/msg/cesium-dev/k9EgBl1Ejqo/93WdjL_HBQAJ)

![clipped_corridor](https://user-images.githubusercontent.com/1711126/54042841-1afb7680-4199-11e9-95e1-ef1c22ea7d0a.png)

Rotate the globe and you'll see that this is supposed to be a full corridor that gets clipped at the left edge of the globe in the picture above.

If you replace line 25:

```
geometry: new Cesium.CorridorGeometry( ovalDesc ),
```

with:

```
geometry: circleGeom,
```

You'll see that a large circle gets rendered fine without clipping.

Contributor guide

Open the contributing guide

Research direction

Reproduce the clipped corridor from the linked Sandcastle example and compare line 25 using CorridorGeometry with the circleGeom alternative. Rotate the globe to confirm the corridor is clipped at the globe edge, then trace CorridorGeometry's rendering and clipping behavior. Done means the full large corridor renders without the reported edge clipping while the circle comparison remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.