Load the ground specified in the given node. :param node: The node dict which contains information from house.json.. :param metadata: A dict of metadata which will be written into the object's custom data. :param material_adjustments: Adjustments to the materials which were
(node: Dict[str, Any], metadata: Dict[str, Union[str, int]],
material_adjustments: List[Dict[str, str]],
transform: Matrix, house_id: str, parent: Entity, label_mapping: LabelIdMapping)
| 194 | |
| 195 | @staticmethod |
| 196 | def load_ground(node: Dict[str, Any], metadata: Dict[str, Union[str, int]], |
| 197 | material_adjustments: List[Dict[str, str]], |
| 198 | transform: Matrix, house_id: str, parent: Entity, label_mapping: LabelIdMapping) -> List[ |
| 199 | MeshObject]: |
| 200 | """ Load the ground specified in the given node. |
| 201 | |
| 202 | :param node: The node dict which contains information from house.json.. |
| 203 | :param metadata: A dict of metadata which will be written into the object's custom data. |
| 204 | :param material_adjustments: Adjustments to the materials which were specified inside house.json. |
| 205 | :param transform: The transformation that should be applied to the loaded objects. |
| 206 | :param house_id: The id of the current house. |
| 207 | :param parent: The parent object to which the ground should be linked |
| 208 | :return: The list of loaded mesh objects. |
| 209 | """ |
| 210 | metadata["type"] = "Ground" |
| 211 | metadata["category_id"] = label_mapping.id_from_label("floor") |
| 212 | metadata["fine_grained_class"] = "ground" |
| 213 | return _SuncgLoader.load_obj(os.path.join(_SuncgLoader.suncg_dir, "room", house_id, node["modelId"] + "f.obj"), |
| 214 | metadata, material_adjustments, transform, parent) |
| 215 | |
| 216 | @staticmethod |
| 217 | def load_object(node: Dict[str, Any], metadata: Dict[str, Union[str, int]], |
no test coverage detected