Experimental
This feature is not final and is subject to change without Cesium's standard deprecation policy.
参考:
继承
成员(属性)
Feature ID associated with the primitive; not required to be unique.
- 继承自:
Count of holes (indices) in this polygon.
Count of positions (vertices) in this polygon's outer linear ring, number
of VEC3 elements.
Offset in collection position array to first vertex in polygon's outer
linear ring, number of VEC3 elements.
Whether primitive is shown.
- 继承自:
Count of triangles in this polygon, number of VEC3 elements.
Count of positions (vertices) in this polygon, including both outer ring and
internal rings (holes), number of VEC3 elements.
方法
Copies data from source polygon to result. If the result polygon is not
new (the last polygon in the collection) then source and result polygons
must have the same vertex counts, hole counts, and triangle counts.
返回值:
Returns the color of primitive.
| 参数名称 |
类型 |
描述信息 |
result |
Color
|
|
返回值:
- 继承自:
Returns an array view of the inner linear ring vertex positions for the
specified hole. If 'result' argument is given, vertex positions are written
to that array and returned. Otherwise, returns an ArrayView on collection
memory — changes to this array will not trigger render updates, which
requires `.setPositions()`.
| 参数名称 |
类型 |
描述信息 |
holeIndex |
number
|
|
result |
Float64Array
|
可选
return {Float64Array} |
Gets this polygon's hole indices, with each hole represented as a single
offset into this polygon's positions array. Each hole implicitly
continues along an internal linear ring from that vertex offset until
reaching either the end of the positions array, or the next hole offset.
If 'result' argument is given, hole indices are written to that array and
returned. Otherwise, returns an ArrayView on collection memory — changes
to this array will not trigger render updates, which requires `.setHoles()`.
| 参数名称 |
类型 |
描述信息 |
result |
Uint32Array
|
可选
|
返回值:
Returns the number of (VEC3) vertices in the specified hole.
| 参数名称 |
类型 |
描述信息 |
holeIndex |
number
|
|
返回值:
Returns an array view of this polygon's outer linear ring vertex positions.
If 'result' argument is given, vertex positions are written to that array
and returned. Otherwise, returns an ArrayView on collection memory —
changes to this array will not trigger render updates, which requires
`.setPositions()`.
| 参数名称 |
类型 |
描述信息 |
result |
Float64Array
|
可选
|
返回值:
Returns an array view of this polygon's vertex positions. If 'result'
argument is given, vertex positions are written to that array and returned.
Otherwise, returns an ArrayView on collection memory — changes to this array
will not trigger render updates, which requires `.setPositions()`.
| 参数名称 |
类型 |
描述信息 |
result |
Float64Array
|
可选
return {Float64Array} |
Returns an array view of this polygon's triangle indices, represented as
three vertex indices per triangle.
If 'result' argument is given, triangle indices are written to that array
and returned. Otherwise, returns an ArrayView on collection memory —
changes to this array will not trigger render updates, which requires
`.setTriangles()`.
| 参数名称 |
类型 |
描述信息 |
result |
Uint32Array
|
可选
|
返回值:
Updates the color of primitive.
- 继承自:
Sets this polygon's hole indices, with holes represented as a single
offset into this polygon's positions array. Each hole implicitly
continues along an internal linear ring from that vertex offset until
reaching either the end of the positions array, or the next hole offset.
| 参数名称 |
类型 |
描述信息 |
holes |
Uint32Array
|
|
| 参数名称 |
类型 |
描述信息 |
positions |
Float64Array
|
|
Sets this polygon's triangle indices, represented as three vertex indices
per triangle.
| 参数名称 |
类型 |
描述信息 |
indices |
Uint32Array
|
|
Returns a JSON-serializable object representing the polygon. This encoding
is not memory-efficient, and should generally be used for debugging and
testing.
返回值:
JSON-serializable object.
- 继承自: