@JsType(isNative=true, namespace="Cesium", name="Geometry") public class Geometry extends Object
Modifier and Type | Field and Description |
---|---|
GeometryAttributes |
attributes
Attributes, which make up the geometry's vertices.
|
BoundingSphere |
boundingSphere
An optional bounding sphere that fully encloses the geometry.
|
Arrays |
indices
Optional index data that - along with Geometry#primitiveType - determines the primitives in the geometry.
|
Number |
primitiveType
PrimitiveType
The type of primitives in the geometry. |
Constructor and Description |
---|
Geometry()
A geometry representation with attributes forming vertices and optional index data defining primitives.
|
Geometry(GeometryOptions options)
A geometry representation with attributes forming vertices and optional index data defining primitives.
|
Modifier and Type | Method and Description |
---|---|
static int |
computeNumberOfVertices(Geometry geometry)
Computes the number of vertices in a geometry.
|
@JsProperty public GeometryAttributes attributes
GeometryAttribute
,
VertexFormat
@JsProperty public BoundingSphere boundingSphere
@JsProperty public Arrays indices
@JsProperty public Number primitiveType
PrimitiveType
The type of primitives in the geometry. This is most often PrimitiveType.TRIANGLES, but can varying based on the specific geometry.@JsConstructor public Geometry()
@JsConstructor public Geometry(GeometryOptions options)
options
- OptionsPolygonGeometry
,
RectangleGeometry
,
EllipseGeometry
,
CircleGeometry
,
WallGeometry
,
SimplePolylineGeometry
,
BoxGeometry
,
EllipsoidGeometry
@JsMethod public static int computeNumberOfVertices(Geometry geometry)
geometry
- The geometry.Copyright © 2019. All rights reserved.