@JsType(isNative=true, namespace="Cesium", name="GeometryInstance") public class GeometryInstance extends Object
Modifier and Type | Field and Description |
---|---|
Object |
attributes
Per-instance attributes like ColorGeometryInstanceAttribute or ShowGeometryInstanceAttribute.
|
Geometry |
geometry
The geometry being instanced.
|
Object |
id
User-defined object returned when the instance is picked or used to get/set per-instance attributes.
|
Matrix4 |
modelMatrix
The 4x4 transformation matrix that transforms the geometry from model to world coordinates.
|
Constructor and Description |
---|
GeometryInstance()
Geometry instancing allows one Geometry object to be positions in several different locations and colored uniquely.
|
GeometryInstance(GeometryInstanceOptions options)
Geometry instancing allows one Geometry object to be positions in several different locations and colored uniquely.
|
public Object attributes
@JsProperty public Geometry geometry
@JsProperty public Object id
@JsProperty public Matrix4 modelMatrix
Matrix4.IDENTITY()
@JsConstructor public GeometryInstance()
@JsConstructor public GeometryInstance(GeometryInstanceOptions options)
options
- OptionsCopyright © 2019. All rights reserved.