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:
