distance3d.random.rand_box

distance3d.random.rand_box(random_state, center_scale=1.0, size_scale=1.0)[source]

Sample box.

Parameters:
random_statenp.random.RandomState

Random number generator.

center_scalefloat, optional (default: 1)

Scaling factor for center.

size_scalefloat, optional (default: 1)

Scaling factor for size.

Returns:
box2originarray, shape (4, 4)

Pose of the box.

sizearray, shape (3,)

Sizes of the box along its axes within (0, size_scale].