Hi,
Is there a way to tell a PolylineVolume not to follow the curvature of the earth? You can see the curvature on the red volume in this example sandcastle.
(Ordinary polyLines have a property called followSurface that allows you to control that)
Thank you,
Fidel
Hi Fidel,
You can get a PolylineVolume with no curvature by setting the granularity to PI. granularity is a property that tells the line how often to subdivide to conform to the curvature of the ellipsoid. See more here: http://cesiumjs.org/Cesium/Build/Documentation/PolylineVolumeGraphics.html
Hope that helps!
Thanks Rachel, that worked perfectly.
Just had to add the line in bold:
var redTube = viewer.entities.add({
name : ‘Red tube with rounded corners’,
polylineVolume : {
granularity : Cesium.Math.PI,
positions : Cesium.Cartesian3.fromDegreesArray([-85.0, -20.0,
-85.0, 40.0,
-89.0, 40.0]),
shape : computeCircle(60000.0),
material : Cesium.Color.RED
}
});
``