blenderproc.python.modules.provider.sampler.Uniform3d module

class blenderproc.python.modules.provider.sampler.Uniform3d.Uniform3d(config)[source]

Bases: blenderproc.python.modules.main.Provider.Provider

Uniformly samples a 3-dimensional vector.

Example 1: Return a uniform;y sampled 3d vector from a range [min, max].

{
  "provider": "sampler.Uniform3d",
  "max": [0.5, 0.5, 0.5],
  "min": [-0.5, -0.5, -0.5]
}

Configuration:

Parameter Description Type
min A list of three values, describing the minimum values of 1st, 2nd, and 3rd dimensions. list
max A list of three values, describing the maximum values of 1st, 2nd, and 3rd dimensions. list
run()[source]
Returns:Sampled value. Type: mathutils.Vector