blenderproc.constructor package
Module contents
- blenderproc.constructor.construct_random_room(used_floor_area, interior_objects, materials, amount_of_extrusions=0, fac_from_square_room=0.3, corridor_width=0.9, wall_height=2.5, amount_of_floor_cuts=2, only_use_big_edges=True, create_ceiling=True, assign_material_to_ceiling=False, placement_tries_per_face=3, amount_of_objects_per_sq_meter=3.0)
Constructs a random room based on the given parameters, each room gets filled with the objects in the interior_objects list.
- Parameters:
used_floor_area (
float
) – The amount of square meters used for this room (e.g. 25 qm)interior_objects (
List
[MeshObject
]) – List of interior objects, which are sampled inside this roommaterials (
List
[Material
]) – List of materials, which will be used for the floor, ceiling, and the wallsamount_of_extrusions (
int
) – Amount of extrusions performed on the basic floor shape, zero equals a rectangular roomfac_from_square_room (
float
) – Maximum allowed factor between the length of two main sides of a rectangular roomcorridor_width (
float
) – Minimum corridor width in meters, is used for the extrusionswall_height (
float
) – Height of the walls of the roomamount_of_floor_cuts (
int
) – The floor plan gets cut with each iteration, allowing for the finding of new edges which are used to create extrusions.only_use_big_edges (
bool
) – If this is all edges are sorted by length and only the bigger half is usedcreate_ceiling (
bool
) – If this is true a ceiling is created for the roomassign_material_to_ceiling (
bool
) – If this is True the ceiling also gets a material assignedplacement_tries_per_face (
int
) – How many tries should be performed per face to place an object, a higher amount will ensure that the amount of objects per sq meter are closer to the desired valueamount_of_objects_per_sq_meter (
float
) – How many objects should be placed on each square meter of room