distance3d.random.rand_cylinder

distance3d.random.rand_cylinder(random_state, center_scale=1.0, min_radius=0.0, min_length=0.0, radius_scale=1.0, length_scale=1.0)[source]

Sample cylinder.

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 cylinder.

min_lengthfloat, optional (default: 0)

Minimum length of cylinder.

radius_scalefloat, optional (default: 1)

Scaling factor for radius.

length_scalefloat, optional (default: 1)

Scaling factor for length.

Returns:
cylinder2originarray, shape (4, 4)

Pose of the cylinder.

radiusfloat

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

lengthfloat

Length of the cylinder within (min_length, min_length + length_scale].