blenderproc.python.sampler.SuncgPointInRoomSampler module¶
-
class
blenderproc.python.sampler.SuncgPointInRoomSampler.SuncgPointInRoomSampler(suncg_objects)[source]¶ Bases:
object-
_find_floor(suncg_objects, room_obj)[source]¶ Returns the floor object of the given room object.
Goes through all children and returns the first one with type “Floor”.
Parameters: - suncg_objects (
List[MeshObject]) – - room_obj (
MeshObject) – The room object.
Return type: Returns: The found floor object or None if none has been found.
- suncg_objects (
-
sample(height, max_tries=1000)[source]¶ Samples a point inside one of the loaded suncg rooms.
The points are uniformly sampled along x/y over all rooms. The z-coordinate is set based on the given height value.
Parameters: Return type: Tuple[ndarray,int]Returns: The sampled point and the id of the room it was sampled in.
-