A CircleOutlineGeometry represents the outline of a circle centered at the origin of the coordinate system. The circle is constructed by specifying its radius and the number of vertices used to define it.
一个 CircleOutlineGeometry 表示以坐标系原点为中心的圆的轮廓。这个圆由半径和用于定义它的顶点数来构建。
new Cesium.CircleOutlineGeometry({
center: Cartesian3,
radius: Number,
vertexFormat: VertexFormat,
stRotation: Number,
extrudedHeight: Number,
height: Number,
granularity: Number,
numberOfVerticalLines: Number
});
Cartesian3
(必须)。Number
(必须)。VertexFormat
(可选)。Number
(可选)。Number
(可选)。Number
(可选)。Number
(可选)。Number
(可选)。var circleOutlineGeometry = new Cesium.CircleOutlineGeometry({
center: Cesium.Cartesian3.fromDegrees(-122.1062169, 37.3639411),
radius: 10000,
vertexFormat: Cesium.VertexFormat.POSITION_AND_NORMAL,
stRotation: Cesium.Math.PI_OVER_FOUR,
extrudedHeight: 5000,
granularity: Cesium.Math.toRadians(5),
numberOfVerticalLines: 16
});
以上示例代码中,我们创建了一个 CircleOutlineGeometry(圆的轮廓),通过传入相应参数来配置圆的位置、大小、属性、纹理等。其中:
.fromDegrees()
方法创建;POSITION
和 NORMAL
;