我正在关注沙堡椭圆轮廓几何。我想知道是否有办法使椭圆线的宽度变宽?有使用 width 属性使多段线变宽的示例,但似乎没有办法制作 ellipseOutlineGeometry 对象。沙堡示例的末尾有一个 lineWidth 设置,但对此的更改似乎不会影响椭圆轮廓的宽度。
沙箱代码:
// Create the ellipse geometry. To extrude, specify the
// height of the geometry with the extrudedHeight option.
// The numberOfVerticalLines option can be used to specify
// the number of lines connecting the top and bottom of the
// ellipse.
ellipseOutlineGeometry = new Cesium.EllipseOutlineGeometry({
center : Cesium.Cartesian3.fromDegrees(-95.0, 35.0),
semiMinorAxis : 200000.0,
semiMajorAxis : 300000.0,
extrudedHeight : 150000.0,
rotation : Cesium.Math.toRadians(45),
numberOfVerticalLines: 10
});
// Create a geometry instance using the ellipse geometry
// created above.
var extrudedEllipseOutlineInstance = new Cesium.GeometryInstance({
geometry : ellipseOutlineGeometry,
attributes : {
color : Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.WHITE)
}
});
// Add both ellipse outline instances to primitives.
primitives.add(new Cesium.Primitive({
geometryInstances : [ellipseOutlineInstance, extrudedEllipseOutlineInstance],
appearance : new Cesium.PerInstanceColorAppearance({
flat : true,
renderState : {
depthTest : {
enabled : true
},
lineWidth : Math.min(2.0, scene.maximumAliasedLineWidth) //changes here dont seem to affect the actual size?
}
})
}));