I need to simulate a sable oil pipeline that runs from the ocean to destination city. The model runs through a neighborhood and I want to show the exact path of the pipeline through the city.
I want to use the Sandcastle example:
const redTube = viewer.entities.add({
name: “Red tube with rounded corners”,
polylineVolume: {
positions: Cesium.Cartesian3.fromDegreesArray([
-85.0, 32.0, -85.0, 36.0, -89.0, 36.0,
]),
shape: computeCircle(60000.0),
material: Cesium.Color.RED,
},
});
Question 1: I know ‘shape: computeCircle(60000.0),’ changes the size of the tube; If I need to create a tube that is 14 inches, then is there an equivalency that I can use?
For example, 14 inches = computeCircle(300.0)
Question 2: Does the tube ‘turn’ to get to the next coordinate point?
I am trying to decide between a JS tube and creating a Blender (measured) asset.
Anyone have suggestions? Anyone build a pipeline running through a city? What did you use?