Nodes are stored contiguously in what can be considered a flat array of nodes. This array can be accessed by fixed-size pages of nodes for better request efficiency.
All pages contains exactly layer.nodePages.nodesPerPage
nodes, except for the last page (that may contain less).
We use an integer ID to map a node to its page as follow:
page_id = floor( node_id / node_per_page)
node_id_in_page = modulo( node_id, node_per_page)
cmn::3DSceneLayer, psl::3DSceneLayer, cmn::node
Property | Type | Description |
---|---|---|
nodesPerPage | integer | Number of nodes per page for this layer. Must be a power-of-two less than 4096 |
rootIndex | integer | Index of the root node. Default = 0. |
lodSelectionMetricType | string | Defines the meaning of nodes[].lodThreshold for this layer.Must be:
|
Note: properties in bold are required
{
"nodesPerPage": 64,
"rootIndex": 0,
"lodSelectionMetricType": "maxScreenThresholdSQ"
}