Extends
Members
与该图元关联的特性 ID;不要求唯一。
- Inherited From:
此多边形中洞(索引)的数量。
此多边形外部线性环中位置(顶点)的数量,即 VEC3
元素的数量。
集合位置数组中到多边形外部线性环第一个顶点的偏移量,即 VEC3
元素的数量。
是否显示该图元。
- Inherited From:
此多边形中三角形的数量,即 VEC3 元素的数量。
此多边形中位置(顶点)的数量,包括外部环和
内部环(洞),即 VEC3 元素的数量。
Methods
static Cesium.BufferPolygon.clone(polygon, result) → BufferPolygon
将数据从源多边形复制到结果。如果结果多边形不是
新的(集合中的最后一个多边形),则源多边形和结果多边形
必须具有相同的顶点数、洞数和三角形数。
| Name | Type | Description |
|---|---|---|
polygon |
BufferPolygon | |
result |
BufferPolygon |
Returns:
返回指定洞的内部线性环顶点位置的数组视图。
如果提供了 'result' 参数,顶点位置将写入该数组
并返回。否则,返回集合内存上的 ArrayView —
对此数组的更改不会触发渲染更新,渲染更新需要调用 `.setPositions()`。
| Name | Type | Description |
|---|---|---|
holeIndex |
number | |
result |
TypedArray | optional return {TypedArray} |
getHoles(result) → TypedArray
获取此多边形的洞索引,每个洞表示为此多边形位置数组中的单个
偏移量。每个洞隐式地从该顶点偏移量沿内部线性环继续,
直到到达位置数组的末尾或下一个洞的偏移量。
如果提供了 'result' 参数,洞索引将写入该数组并
返回。否则,返回集合内存上的 ArrayView — 对此数组的更改
不会触发渲染更新,渲染更新需要调用 `.setHoles()`。
| Name | Type | Description |
|---|---|---|
result |
TypedArray | optional |
Returns:
返回指定洞中(VEC3)顶点的数量。
| Name | Type | Description |
|---|---|---|
holeIndex |
number |
Returns:
getMaterial(result) → BufferPrimitiveMaterial
| Name | Type | Description |
|---|---|---|
result |
BufferPrimitiveMaterial |
Returns:
- Inherited From:
getOuterPositions(result) → TypedArray
返回此多边形外部线性环顶点位置的数组视图。
如果提供了 'result' 参数,顶点位置将写入该数组
并返回。否则,返回集合内存上的 ArrayView —
对此数组的更改不会触发渲染更新,渲染更新需要调用
`.setPositions()`。
| Name | Type | Description |
|---|---|---|
result |
TypedArray | optional |
Returns:
返回此多边形顶点位置的数组视图。如果提供了 'result'
参数,顶点位置将写入该数组并返回。
否则,返回集合内存上的 ArrayView — 对此数组的更改
不会触发渲染更新,渲染更新需要调用 `.setPositions()`。
| Name | Type | Description |
|---|---|---|
result |
TypedArray | optional return {TypedArray} |
getTriangles(result) → TypedArray
返回此多边形三角形索引的数组视图,每个三角形由
三个顶点索引表示。
如果提供了 'result' 参数,三角形索引将写入该数组
并返回。否则,返回集合内存上的 ArrayView —
对此数组的更改不会触发渲染更新,渲染更新需要调用
`.setTriangles()`。
| Name | Type | Description |
|---|---|---|
result |
TypedArray | optional |
Returns:
设置此多边形的洞索引,洞表示为此多边形位置数组中的单个
偏移量。每个洞隐式地从该顶点偏移量沿内部线性环继续,
直到到达位置数组的末尾或下一个洞的偏移量。
| Name | Type | Description |
|---|---|---|
holes |
TypedArray |
| Name | Type | Description |
|---|---|---|
material |
BufferPrimitiveMaterial |
- Inherited From:
| Name | Type | Description |
|---|---|---|
positions |
TypedArray |
设置此多边形的三角形索引,每个三角形由三个顶点索引
表示。
| Name | Type | Description |
|---|---|---|
indices |
TypedArray |
返回表示该多边形的可 JSON 序列化对象。此编码
不是内存高效的,通常应用于调试和
测试。
Returns:
可 JSON 序列化的对象。
- Inherited From:
