Hello,
I am trying to show a 3D vector in Cesium. So, i define this custom geometry:
var lineGeometry = function() {
var positions = new Float64Array(2 * 3);
// position 0
positions[0] = 0.0;
positions[1] = 0.0;
positions[2] = 0.0;
// position 1
positions[3] = 1.0;
positions[4] = 1.0;
positions[5] = 1.0;
var attributes = new Cesium.GeometryAttributes({
position : new Cesium.GeometryAttribute({
componentDatatype : Cesium.ComponentDatatype.DOUBLE,
componentsPerAttribute : 3,
values : positions
})
});
var indices = new Uint16Array(1 * 2);
indices[0] = 0;
indices[1] = 1;
this.attributes = attributes;
this.indices = indices;
this.primitiveType = Cesium.PrimitiveType.LINES;
this.boundingSphere = new Cesium.BoundingSphere(Cesium.Cartesian3.ZERO, 1.0);
};
How can i define the width?