1. A concise explanation of the problem you're experiencing.
If I set vertices to (x, y, 0) so that the polyline is in the X-Y plane, the polyline renders fine. If I use (x, 0 , z) so the polyline is in the X-Z plane, it doesn't render the polylineGeometry correctly. The vertices are correct and can be plotted in another drawing program. I set VertexFormat positions to true for 3D.
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
const template = new Cesium.PolylineGeometry({
positions: vertices,
width: 4,
vertexFormat: new Cesium.VertexFormat({
position : true,
})
});
where vertices are an array of (x, 0, z) values like
0.08715574274765804, 0, 1.9961946980917455,
0.1736481776669302, 0, 1.9848077530122081,
0.25881904510252063, 0, 1.9659258262890684,
0.3420201433256686, 0, 1.9396926207859084,
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
Trying to draw a polyline primitive geometry in the X-Z plane
4. The Cesium version you're using, your operating system and browser.
"cesium": "1.48.0"
chrome Version 73.0.3683.103 (Official Build) (64-bit)