Experimental
This feature is not final and is subject to change without Cesium's standard deprecation policy.
See:
Extends
Members
与原始人相关的特征ID;不需要独具特色.
- Inherited From:
此多边形中的孔数( indices) .
此多边形外线环中的位置( 垂直) 数, 数字
- NT=0=元素的单位.
在收藏位置阵列中偏移到多边形外部的第一个顶点
线性环,为 NT 0 元素.
是否显示原始 .
- Inherited From:
在这个多边形中三角形的计数,编号为 VEC3 元素.
计算这个多边形中的位置(顶点),包括外环和
内环(孔),编号 VEC3 元素.
Methods
static Cesium.BufferPolygon.clone(polygon, result) → BufferPolygon
从源多边形复制到结果的数据 。 如果结果多边形不是
new (the last polygon in the collection) then source and result polygons
必须有相同的顶点数、洞数和三角数.
| Name | Type | Description |
|---|---|---|
polygon |
BufferPolygon | |
result |
BufferPolygon |
Returns:
getColor(result) → Color
返回原始颜色.
| Name | Type | Description |
|---|---|---|
result |
Color |
Returns:
- Inherited From:
返回内线性环顶点位置的数组视图
指定孔。 如果给出“ 结果” 参数, 则写入顶点位置
到那个阵列然后返回。 否则,返回收藏上的矩阵View
内存 —— 此数组的更改不会触发渲染更新
requires `.setPositions()`.
| Name | Type | Description |
|---|---|---|
holeIndex |
number | |
result |
Float64Array | optional return {Float64Array} |
获得这个多边形的孔索引, 每个孔都作为单一
冲抵到多边形的位置阵列中。 每个洞都隐含着
沿一个内部线性环线继续从顶点抵消到
到达位置数组的末尾,或下一个孔的偏移.
如果给出了“ 结果” 参数, 洞索引会写到该数组和
返回 。 。 否则, 返回收藏内存上的矩阵View — 更改
to this array will not trigger render updates, which requires `.setHoles()`.
| Name | Type | Description |
|---|---|---|
result |
Uint32Array | optional |
Returns:
返回指定孔中的顶点( VEC3 )数.
| Name | Type | Description |
|---|---|---|
holeIndex |
number |
Returns:
返回多边形外线环顶点位置的数组视图.
如果给出了“ 结果” 参数, 则将顶点位置写入该数组
然后就回来了。 否则,返回收藏内存上的 ArrayView ——
此数组的更改不会触发渲染更新, 这需要
`.setPositions()`.
| Name | Type | Description |
|---|---|---|
result |
Float64Array | optional |
Returns:
返回多边形顶点位置的数组视图。 如果“ 结果 ”
参数,顶点位置会写到该数组并返回.
否则, 返回收藏内存上的 ArrayView —— 更改此数组
将不会触发渲染更新, 这需要 `.setPositions()` .
| Name | Type | Description |
|---|---|---|
result |
Float64Array | optional return {Float64Array} |
返回多边形三角形指数的数组视图,以
每个三角形有三个顶点指数.
如果给出了“ 结果” 参数, 三角形指数会写入该数组
然后就回来了。 否则,返回收藏内存上的 ArrayView ——
此数组的更改不会触发渲染更新, 这需要
`.setTriangles()`.
| Name | Type | Description |
|---|---|---|
result |
Uint32Array | optional |
Returns:
更新原始颜色.
| Name | Type | Description |
|---|---|---|
color |
Color |
- Inherited From:
设置此多边形的孔索引, 以孔为单数
冲抵到多边形的位置阵列中。 每个洞都隐含着
沿一个内部线性环线继续从顶点抵消到
到达位置数组的末尾,或下一个孔的偏移.
| Name | Type | Description |
|---|---|---|
holes |
Uint32Array |
| Name | Type | Description |
|---|---|---|
positions |
Float64Array |
设置此多边形三角形指数, 表示为三个顶点指数
per triangle.
| Name | Type | Description |
|---|---|---|
indices |
Uint32Array |
返回代表多边形的 NT 0 可串行对象。 此编码
没有内存效率,一般应用于调试和
testing.
Returns:
JSON-serializable object.
- Inherited From: