MCPcopy Create free account
hub / github.com/DLR-RM/BlenderProc / load_ground

Method load_ground

blenderproc/python/loader/SuncgLoader.py:196–214  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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]],

Callers 1

load_suncgFunction · 0.80

Calls 2

id_from_labelMethod · 0.80
load_objMethod · 0.80

Tested by

no test coverage detected