HOOPS node mapping file
Generate a Hoops node mapping file to pair with the Hoops stream file so that the platform viewer can efficiently find nodes in the BIMPK file by their properties, such as the bimpk-id.
In your hoops_node_mapping.json file, create two-way mappings in the following data structure:
Note: The BIMPK id is the integer id sting you give the object in
"objects.id"inobjects.json.
hoops_node_mapping.json file structure
[ { "<node_id_1>": "<bimpk_id_1>", "<node_id_2>": "<bimpk_id_2>", ... }, { "<bimpk_id_1>": "<node_id_1>", "<bimpk_id_2>": "<node_id_2>", ... }]hoops_node_mapping.json file example#
[ { "2": "1", //'2' is HOOPs node id and '1' is element's bimpk_id "4": "2", "6": "3", "8": "4", "10": "5", ... "355": "47" }, { "1": "2", // '1' is element's bimpk_id and '2' is HOOPs node id "2": "4", "3": "6", "4": "8", "5": "10", ... "47": "355" }]