可选options: {只读allowThe Appearance used to shade this primitive. Each geometry instance is shaded with the same appearance. Some appearances, like PolylineColorAppearance allow giving each instance unique properties.
只读asynchronousDetermines if the geometry instances will be created and batched on a web worker.
Determines whether terrain, 3D Tiles or both will be classified.
This property is for debugging only; it is not for production use nor is it optimized.
Draws the bounding sphere for each draw command in the primitive.
只读debugThis property is for debugging only; it is not for production use nor is it optimized.
If true, draws the shadow volume for each geometry in the primitive.
只读geometryThe geometry instances rendered with this primitive. This may
be undefined if options.releaseGeometryInstances
is true when the primitive is constructed.
Changing this property after the primitive is rendered has no effect.
只读interleaveDetermines if geometry vertex attributes are interleaved, which can slightly improve rendering performance.
只读readyDetermines if the primitive is complete and ready to render. If this property is true, the primitive will be rendered the next time that GroundPolylinePrimitive#update is called.
只读readyGets a promise that resolves when the primitive is ready to render.
只读releaseWhen true, the primitive does not keep a reference to the input geometryInstances to save memory.
Determines if the primitive will be shown. This affects all geometry instances in the primitive.
Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.
Once an object is destroyed, it should not be used; calling any function other than
isDestroyed will result in a DeveloperError exception. Therefore,
assign the return value (undefined) to the object as done in the example.
Returns the modifiable per-instance attributes for a GeometryInstance.
The id of the GeometryInstance.
The typed array in the attribute's format or undefined if the is no instance with id.
Returns true if this object was destroyed; otherwise, false.
If this object was destroyed, it should not be used; calling any function other than
isDestroyed will result in a DeveloperError exception.
true if this object was destroyed; otherwise, false.
Called when Viewer or CesiumWidget render the scene to get the draw commands needed to render this primitive.
Do not call this function directly. This is documented just to list the exceptions that may be propagated when the scene is rendered:
静态initializeInitializes the minimum and maximum terrain heights. This only needs to be called if you are creating the GroundPolylinePrimitive synchronously.
A promise that will resolve once the terrain heights have been loaded.
静态isChecks if the given Scene supports GroundPolylinePrimitives. GroundPolylinePrimitives require support for the WEBGL_depth_texture extension.
The current scene.
Whether or not the current scene supports GroundPolylinePrimitives.
When
true, each geometry instance will only be pickable with Scene#pick. Whenfalse, GPU memory is saved.