CesiumGS / CesiumGS/cesium

outlineWidth member not updating geometry

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

Description

This issue stems from the following community forum thread: https://community.cesium.com/t/polygon-outline-width-issue/14887

The member `outlineWidth` in `PolygonGraphics` and `BoxGraphics` does not change the width of the lines outlining a geometric shape if it is updated past a value of 10.

For instance, in this image `outlineWidth` is set to 10.

![image](https://user-images.githubusercontent.com/39531367/130087224-7e4c67c0-4be4-4904-a4d8-43a945ac2e01.png)

In the following image, `outlineWidth` is set to 100.

![image](https://user-images.githubusercontent.com/39531367/130087303-34fb0b4d-0d4e-474c-bd58-7f0af7dc7118.png)

Clearly, there is no noticeable difference between the polygons. It is possible that this is a bug. It is also possible that this behavior is expected due to constraints unknown to me. If the latter is true, we should update the documentation.

Here are some sandcastle demos that I put together: [box](https://sandcastle.cesium.com/#c=bZHLbsIwEEV/ZZRVkFInCFClNKCWxw6pEn1tsjHxQCwcG9lOKFT99zoJiEfxwvKM7z3jGVdUQ8VxhxqGIHEHEzS8LMhnk/NTL2viiZKWcok69TpPqUxl5Xwa2Vh9O18LICgttxwNoYz5P6kEkLTAGFJvgQyWTrrjNoeloNkGVGmFA6ZeUAu3yjirkvGp/oRq605U9shKq2KKa41o/Idu9EiiAPpRvfeiepGo0zBcgRiasgCMFyiNA5r4sqsz1e8fvWdKAIMrHkBBLWpOxflVSihNFrMpqTt5Educ+hEZnPTHnmKwusTrXOO84YznH7Nr1RdnNo+hGzXpX7f/HsfdTvigVPGu/Jt51xIv8BJj9wJHLRDgmRdbpS2UWviEhBaLrXD9mHBZZhu0JDONsZYm4aU1YbwCzoZ3/h4yQY1xN6tSiDd+cN83SkKn/2cVijIu168VakH3tSzvjuZtkhCShC6877RKiSXVN+Q/), [polygon](https://sandcastle.cesium.com/#c=bVJRT7MwFP0rDS+yhBSY+sLY4kSjiUYT/fJ9Dx8+VHodjaVdbssmGv+7BcY2p32Bc+85p/dcICuGZCVgDUimRMGaZGBEXdG/Xc0/KjqYaWWZUIBHo0muctWqGCJrMq2Rm+n/OBoH4yiIo+NgHLvHSY/a4tNkj38NYlHaHyp3dtoenOx3drTBTddWuoH+CW7L6WnUTRWGSy2bhW4H7ManoKywAgxlnPsfuSLubDgJ2WBCSgHIsCibZEifMbTujalj+oK6uoAFAph5m8Dfyz0KthZdroRE2wq8Waw58D5x0icZmhWzgILJ3YVaaqRXD5eXd3QtbDmXy5L5ET0drtjkTYhzhe+1TnvgdH47z26+07pVJSQepvjM1Wf/Nbfrete6+qP9g+WNJl7gpcY2EmZDgDNRLTVaUqP0KQ0tVEvpMpnwuS5ewdLCmNa7pabhvjTlYkUEn+bewZ+Ve6SQzBjXeamlfBTvkHuzNHT8H1KpGRdqcb8ClKxpaWU8u+2LlNI0dPB3pdVaPjM8cP4C)

Browser:
Chrome, Firefox

Operating System:
Ubuntu, Windows 10

Contributor guide

Open the contributing guide

Research direction

Reproduce the behavior using the linked Sandcastle box and polygon demos, then inspect the PolygonGraphics and BoxGraphics outlineWidth behavior. Confirm whether changing the value above 10 should alter rendered line width and whether geometry updates accordingly; done means either correcting that behavior or documenting the confirmed constraint.

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.