Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.23 KB

geometry.cmn.md

File metadata and controls

47 lines (38 loc) · 1.23 KB

geometry

This is the common container class for all types of geometry definitions used in I3S.

Related:

cmn::featureData, cmn::features

Properties

Property Type Description
id number Unique ID of the geometry in this store.
type string The type denotes whether the following geometry is defined by using array buffer views (ArrayBufferView), as an internal reference (GeometryReference), as a reference to a shared Resource (SharedResourceReference) or embedded (Embedded).
transformation number[16] 3D (4x4) transformation matrix expressed as a linear array of 16 values.
params geometryParams The parameters for a geometry, as an Embedded GeometryParams object, an ArrayBufferView, a GeometryReference object, or a SharedResourceReference object.

Note: properties in bold are required

Examples

Example: Geometry

 {
  "id": 0,
  "type": "ArrayBufferView",
  "transformation": [
    1.0,
    0.0,
    0.0,
    0.0,
    0.0,
    1.0,
    0.0,
    0.0,
    0.0,
    0.0,
    1.0,
    0.0,
    0.0,
    0.0,
    0.0,
    1.0
  ]
}