I'm new to the Cesium API and am trying to learn the easiest way to add polygons to the Cesium globe. I have looked extensively at the sandcastle demos on the Cesium site, but still am struggling to understand something. I started using and modifying the jQuery UI demo page, and then tried to add a polygon to it. However, it didn't work and upon further examination of your polygon example it looks like there are two objects (CesiumViewerWidget and Sandcastle object) that are not present in the jQuery UI demo page. Do both of these objects need to be used in order to overlay a polygon on the Cesium globe, or is it possible to modify the jQuery UI page to draw polygons without these two objects?
Any help would be greatly appreciated.