| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
options |
BufferPrimitiveMaterialOptions | 可选 optional |
实验性 Experimental
此功能不是最终版本,可能会在没有 Cesium 标准弃用政策的情况下进行更改。 This feature is not final and is subject to change without Cesium's standard deprecation policy.
另见: See:
成员 Members
填充颜色。 Color of fill.
outlineColor : Color
轮廓颜色。 Color of outline.
轮廓宽度,0-255px。 Width of outline, 0-255px.
方法 Methods
将提供的材料存储到提供的数组中。 Stores the provided material into the provided array.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
material |
BufferPrimitiveMaterial | |
view |
DataView | |
byteOffset |
number |
static Cesium.BufferPrimitiveMaterial.unpack(view, byteOffset, result) → BufferPrimitiveMaterial
从打包数组中检索材料。 Retrieves a material from a packed array.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
view |
DataView | 打包的数组。 The packed array. |
byteOffset |
number | 要解包的元素的起始索引。 Starting index of the element to be unpacked. |
result |
BufferPrimitiveMaterial | 结果被解包到的材料。 Material into which results are unpacked. |
返回: Returns:
修改后的结果材料,结果已解压。 Modified result material, with results unpacked.
返回表示材质的 JSON 可序列化对象。这种编码不节省内存,通常应该用于调试和测试。 Returns a JSON-serializable object representing the material. This encoding is not memory-efficient, and should generally be used for debugging and testing.
返回: Returns:
JSON 可序列化对象。 JSON-serializable object.
