I wrote a small piece of code[1] which makes a circle appear above the globe. Could someone please help with the two queries I have ?
What controls the thickness of the Circle which is drawn ?
Why is it that I don’t see any lines vertical lines connecting it down to earth?
[1]
//EXERCISE - 2b //Try drawing a CircleOutlineGeometry
var viewer = new Cesium.Viewer('cesiumContainer');
var scene = viewer.scene;
var instance = new Cesium.GeometryInstance({
geometry : new Cesium.CircleOutlineGeometry({
center : Cesium.Cartesian3.fromDegrees(-100,20),
radius : 1000000,
height : 3000000,
numberOfVerticalLines : 16,
}),
});
scene.primitives.add(new Cesium.Primitive({
geometryInstances : instance,
appearance : new Cesium.EllipsoidSurfaceAppearance({
material : Cesium.Material.fromType('Dot'),
}),
}));
To create vertical lines, you need to define height like you did. This parameter is the "base's altitude" of cylinder. Moreover, you need to define extrudedHeight which is the height of your cylinder (see EllipseOutlineGeometry documentation which is the function used by CircleOutlineGeometry). There is a miss in the CircleOutlineGeometry's documentation about extrudedHeight