blenderproc.python.sampler.Front3DPointInRoomSampler module

Allows the sampling 3D Front scenes

class blenderproc.python.sampler.Front3DPointInRoomSampler.Front3DPointInRoomSampler(front3d_objects, amount_of_objects_needed_per_room=2)[source]

Bases: object

Allows the sampling 3D Front scenes

sample(height, max_tries=1000)[source]

Samples a point inside one of the loaded Front3d rooms.

The points are uniformly sampled along x/y over all rooms. The z-coordinate is set based on the given height value.

Parameters:
  • height (float) – The height above the floor to use for the z-component of the point.

  • max_tries (int) – The maximum number of times sampling above the floor should be tried.

Return type:

ndarray

Returns:

The sampled point.