nodeReference

May 26, 2021 ยท View on GitHub

A nodeReference is a pointer to another node - the parent, a child or a neighbor. A nodeReference contains a relative URL to the referenced NID, and a set of meta information which helps determines if a client loads the data and maintains store consistency.

cmn::3DNodeIndexDocument

Properties

PropertyTypeDescription
idstringTree Key ID of the referenced node represented as string.
mbsnumber[4]An array of four doubles, corresponding to x, y, z and radius of the minimum bounding sphere of a node.
hrefstringNumber of values per element.
versionstringVersion (store update session ID) of the referenced node.
featureCountnumberNumber of features in the referenced node and its descendants, down to the leaf nodes.
obbobbDescribes oriented bounding box.

Note: properties in bold are required

Examples

Example: Node reference for integrated mesh scene layer.

 {
  "id": "18",
  "href": "../18",
  "mbs": [
    138.59974403386326,
    -34.929125554424836,
    77.7917739925906,
    245.39599377770242
  ],
  "obb": {
    "center": [
      138.59974403386326,
      -34.929125554424836,
      77.7917739925906
    ],
    "halfSize": [
      186.775208,
      31.6982021,
      158.549973
    ],
    "quaternion": [
      -0.116017461,
      0.276839644,
      0.871147692,
      -0.388588935
    ]
  }
}