distance3d.random.rand_cone

distance3d.random.rand_cone(random_state, center_scale=1.0, min_radius=0.0, min_height=0.0, radius_scale=1.0, height_scale=1.0)[source]

Sample cone.

Parameters:
random_statenp.random.RandomState

Random number generator.

center_scalefloat, optional (default: 1)

Scaling factor for center.

min_radiusfloat, optional (default: 0)

Minimum radius of cone.

min_heightfloat, optional (default: 0)

Minimum height of cone.

radius_scalefloat, optional (default: 1)

Scaling factor for radius.

height_scalefloat, optional (default: 1)

Scaling factor for height.

Returns:
cone2originarray, shape (4, 4)

Pose of the cone.

radiusfloat

Radius of the cone within (min_radius, min_radius + radius_scale].

heightfloat

Height of the cone within (min_height, min_height + height_scale].