Skip to content

Latest commit

 

History

History
695 lines (686 loc) · 19.8 KB

nodePage.cmn.md

File metadata and controls

695 lines (686 loc) · 19.8 KB

Node page

The node page object representing the tree as a flat array of nodes where internal nodes reference their children by their array indices.

Related:

cmn::nodePageDefinition

Properties

Property Type Description
nodes node[] Array of nodes.

Note: properties in bold are required

Examples

Example: Node page

 {
    "nodes": [
        {
            "index": 0,
            "obb": {
                "center": [
                    0.024774588557805226,
                    0.0053793025049776897,
                    14.901687209494412
                ],
                "halfSize": [
                    48.7395706,
                    30.6443405,
                    10.9608498
                ],
                "quaternion": [
                    -0.320114046,
                    -0.630198896,
                    0.321264803,
                    0.630210519
                ]
            },
            "children": [
                1
            ]
        },
        {
            "index": 1,
            "lodThreshold": 59.132808685302734,
            "obb": {
                "center": [
                    0.02477458855780686,
                    0.0053793025049780601,
                    14.901687209494412
                ],
                "halfSize": [
                    48.739563,
                    30.6443386,
                    10.9608488
                ],
                "quaternion": [
                    -0.320114046,
                    -0.630198896,
                    0.321264803,
                    0.630210519
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 15,
                    "texelCountHint": 256
                },
                "geometry": {
                    "definition": 0,
                    "resource": 15,
                    "vertexCount": 1140,
                    "featureCount": 8
                },
                "attribute": {
                    "resource": 15
                }
            },
            "children": [
                2
            ]
        },
        {
            "index": 2,
            "lodThreshold": 236.53123474121094,
            "obb": {
                "center": [
                    0.02477458855780686,
                    0.0053793025049780601,
                    14.901687209494412
                ],
                "halfSize": [
                    48.739563,
                    30.6443386,
                    10.9608488
                ],
                "quaternion": [
                    -0.320114046,
                    -0.630198896,
                    0.321264803,
                    0.630210519
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 14,
                    "texelCountHint": 256
                },
                "geometry": {
                    "definition": 0,
                    "resource": 14,
                    "vertexCount": 1140,
                    "featureCount": 8
                },
                "attribute": {
                    "resource": 14
                }
            },
            "children": [
                3
            ]
        },
        {
            "index": 3,
            "lodThreshold": 946.12493896484375,
            "obb": {
                "center": [
                    0.02477458855780686,
                    0.0053793025049780601,
                    14.901687209494412
                ],
                "halfSize": [
                    48.739563,
                    30.6443386,
                    10.9608488
                ],
                "quaternion": [
                    -0.320114046,
                    -0.630198896,
                    0.321264803,
                    0.630210519
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 13,
                    "texelCountHint": 512
                },
                "geometry": {
                    "definition": 0,
                    "resource": 13,
                    "vertexCount": 1140,
                    "featureCount": 8
                },
                "attribute": {
                    "resource": 13
                }
            },
            "children": [
                4
            ]
        },
        {
            "index": 4,
            "lodThreshold": 3784.499755859375,
            "obb": {
                "center": [
                    0.02477458855780686,
                    0.0053793025049780601,
                    14.901687209494412
                ],
                "halfSize": [
                    48.739563,
                    30.6443386,
                    10.9608488
                ],
                "quaternion": [
                    -0.320114046,
                    -0.630198896,
                    0.321264803,
                    0.630210519
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 12,
                    "texelCountHint": 2048
                },
                "geometry": {
                    "definition": 0,
                    "resource": 12,
                    "vertexCount": 1140,
                    "featureCount": 8
                },
                "attribute": {
                    "resource": 12
                }
            },
            "children": [
                5
            ]
        },
        {
            "index": 5,
            "lodThreshold": 15137.9990234375,
            "obb": {
                "center": [
                    0.024774588557693177,
                    0.0053793025051259401,
                    14.901687209494412
                ],
                "halfSize": [
                    48.739563,
                    30.6443386,
                    10.9608488
                ],
                "quaternion": [
                    -0.320114046,
                    -0.630198896,
                    0.321264803,
                    0.630210519
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 11,
                    "texelCountHint": 8192
                },
                "geometry": {
                    "definition": 0,
                    "resource": 11,
                    "vertexCount": 1140,
                    "featureCount": 8
                },
                "attribute": {
                    "resource": 11
                }
            },
            "children": [
                6
            ]
        },
        {
            "index": 6,
            "lodThreshold": 60551.99609375,
            "obb": {
                "center": [
                    0.024774588557593711,
                    0.0053793025052710983,
                    14.901687209494412
                ],
                "halfSize": [
                    48.739563,
                    30.6443386,
                    10.9608488
                ],
                "quaternion": [
                    -0.320114046,
                    -0.630198896,
                    0.321264803,
                    0.630210519
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 10,
                    "texelCountHint": 32768
                },
                "geometry": {
                    "definition": 0,
                    "resource": 10,
                    "vertexCount": 1140,
                    "featureCount": 8
                },
                "attribute": {
                    "resource": 10
                }
            },
            "children": [
                7,
                8
            ]
        },
        {
            "index": 7,
            "lodThreshold": 242207.984375,
            "obb": {
                "center": [
                    0.02480438053003459,
                    0.0053395873769804198,
                    14.604276076890528
                ],
                "halfSize": [
                    48.7387047,
                    11.6107492,
                    24.8489189
                ],
                "quaternion": [
                    -0.232766122,
                    -0.20745486,
                    0.675836384,
                    -0.667852938
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 6,
                    "texelCountHint": 131072
                },
                "geometry": {
                    "definition": 0,
                    "resource": 6,
                    "vertexCount": 1092,
                    "featureCount": 7
                },
                "attribute": {
                    "resource": 6
                }
            },
            "children": [
                9,
                10
            ]
        },
        {
            "index": 8,
            "lodThreshold": 1435.5504150390625,
            "obb": {
                "center": [
                    0.024637913628921843,
                    0.0055829497191515398,
                    6.388948948122561
                ],
                "halfSize": [
                    3.2823627,
                    3.2604928,
                    2.38895011
                ],
                "quaternion": [
                    -0.393684298,
                    0.587419271,
                    0.393393338,
                    -0.587531209
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 9,
                    "texelCountHint": 16384
                },
                "geometry": {
                    "definition": 0,
                    "resource": 9,
                    "vertexCount": 48,
                    "featureCount": 1
                },
                "attribute": {
                    "resource": 9
                }
            },
            "children": [
                11
            ]
        },
        {
            "index": 9,
            "lodThreshold": 968831.9375,
            "obb": {
                "center": [
                    0.02480438053003459,
                    0.0053395873769804198,
                    14.604276076890528
                ],
                "halfSize": [
                    48.7387047,
                    11.6107492,
                    24.8489189
                ],
                "quaternion": [
                    -0.232766122,
                    -0.20745486,
                    0.675836384,
                    -0.667852938
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 2,
                    "texelCountHint": 524288
                },
                "geometry": {
                    "definition": 0,
                    "resource": 2,
                    "vertexCount": 1032,
                    "featureCount": 5
                },
                "attribute": {
                    "resource": 2
                }
            },
            "children": [
                12,
                13
            ]
        },
        {
            "index": 10,
            "lodThreshold": 66492.3046875,
            "obb": {
                "center": [
                    0.024610786486209433,
                    0.0052746099708919263,
                    9.1150609189644456
                ],
                "halfSize": [
                    12.1249161,
                    6.98931932,
                    5.38147545
                ],
                "quaternion": [
                    0.600365937,
                    -0.401916504,
                    -0.580106318,
                    0.376165569
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 5,
                    "texelCountHint": 131072
                },
                "geometry": {
                    "definition": 0,
                    "resource": 5,
                    "vertexCount": 60,
                    "featureCount": 2
                },
                "attribute": {
                    "resource": 5
                }
            },
            "children": [
                14,
                15
            ]
        },
        {
            "index": 11,
            "lodThreshold": 5742.20166015625,
            "obb": {
                "center": [
                    0.024637913628921843,
                    0.0055829497191515398,
                    6.388948948122561
                ],
                "halfSize": [
                    3.2823627,
                    3.2604928,
                    2.38895011
                ],
                "quaternion": [
                    -0.393684298,
                    0.587419271,
                    0.393393338,
                    -0.587531209
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 8,
                    "texelCountHint": 65536
                },
                "geometry": {
                    "definition": 0,
                    "resource": 8,
                    "vertexCount": 48,
                    "featureCount": 1
                },
                "attribute": {
                    "resource": 8
                }
            },
            "children": [
                16
            ]
        },
        {
            "index": 12,
            "lodThreshold": 131033.3515625,
            "obb": {
                "center": [
                    0.024751320621788881,
                    0.0052859563514973213,
                    9.251338442787528
                ],
                "halfSize": [
                    6.76313496,
                    5.0188694,
                    5.27735043
                ],
                "quaternion": [
                    0.432729989,
                    -0.558373272,
                    -0.429119766,
                    0.562867939
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 0,
                    "texelCountHint": 524288
                },
                "geometry": {
                    "definition": 1,
                    "resource": 0,
                    "vertexCount": 30,
                    "featureCount": 1
                },
                "attribute": {
                    "resource": 0
                }
            }
        },
        {
            "index": 13,
            "lodThreshold": 4139578,
            "obb": {
                "center": [
                    0.024804380525960148,
                    0.0053395873778034212,
                    14.60427643917501
                ],
                "halfSize": [
                    48.7387047,
                    11.6107492,
                    24.8489208
                ],
                "quaternion": [
                    -0.232766122,
                    -0.207454845,
                    0.675836384,
                    -0.667852938
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 1,
                    "texelCountHint": 2097152
                },
                "geometry": {
                    "definition": 1,
                    "resource": 1,
                    "vertexCount": 1002,
                    "featureCount": 4
                },
                "attribute": {
                    "resource": 1
                }
            }
        },
        {
            "index": 14,
            "lodThreshold": 111908.546875,
            "obb": {
                "center": [
                    0.02457733747192431,
                    0.005253040270147431,
                    8.8410485591739416
                ],
                "halfSize": [
                    6.24989462,
                    4.63816404,
                    4.84105015
                ],
                "quaternion": [
                    0.560693145,
                    -0.430786937,
                    0.560559511,
                    -0.43106702
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 3,
                    "texelCountHint": 524288
                },
                "geometry": {
                    "definition": 1,
                    "resource": 3,
                    "vertexCount": 30,
                    "featureCount": 1
                },
                "attribute": {
                    "resource": 3
                }
            }
        },
        {
            "index": 15,
            "lodThreshold": 128914.390625,
            "obb": {
                "center": [
                    0.02466818778549611,
                    0.0052868892113869448,
                    9.1957983542233706
                ],
                "halfSize": [
                    6.70807505,
                    4.97796774,
                    5.19579983
                ],
                "quaternion": [
                    0.560690999,
                    -0.430789411,
                    0.560557067,
                    -0.431070685
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 4,
                    "texelCountHint": 524288
                },
                "geometry": {
                    "definition": 1,
                    "resource": 4,
                    "vertexCount": 30,
                    "featureCount": 1
                },
                "attribute": {
                    "resource": 4
                }
            }
        },
        {
            "index": 16,
            "lodThreshold": 22968.8125,
            "obb": {
                "center": [
                    0.024637913184915101,
                    0.0055829490839741725,
                    6.3889489816501737
                ],
                "halfSize": [
                    3.54935479,
                    3.52569342,
                    2.38895011
                ],
                "quaternion": [
                    -0.500083148,
                    0.499868125,
                    -0.499916822,
                    0.500131845
                ]
            },
            "mesh": {
                "material": {
                    "definition": 0,
                    "resource": 7,
                    "texelCountHint": 262144
                },
                "geometry": {
                    "definition": 1,
                    "resource": 7,
                    "vertexCount": 48,
                    "featureCount": 1
                },
                "attribute": {
                    "resource": 7
                }
            }
        }
    ]
}