geometry

May 26, 2021 ยท View on GitHub

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

cmn::featureData, cmn::features

Properties

PropertyTypeDescription
idnumberUnique ID of the geometry in this store.
typestringThe 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).
transformationnumber[16]3D (4x4) transformation matrix expressed as a linear array of 16 values. Used for methods such as translation, scaling, and rotation.
paramsgeometryParamsThe 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
  ]
}