[Bf-python] Noise Module Proposal

Andrew Hale trumanblending at gmail.com
Fri Nov 25 04:42:58 CET 2011


Hello,

It seems that the current noise module has become rather outdated with
respect to the current API. As such I propose to update it to bring it into
line with rest of the API. The changes I propose are listed below;

   1. Move the module so it becomes a submodule of mathutils, i.e.
   mathutils.noise. This will make the module more visible and more useful as
   we can return mathutils types like Vectors.
   2. Change input arguments from (x, y, z) tuples to Vector objects.
   3. Change function outputs from (x, y, z) tuples to Vector objects.
   4. Fix noise.random_unit_vector(), current the y and z components are
   correlated (bad).
   5. Add noise.random_vector() to produce a random vector (non-unit length)
   6. Add other functions (Feel free to reply with ideas)

I have discussed this with ideasman_42 on IRC and he seemed in agreement.
If you have any thoughts please reply.

Thanks,

Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20111125/f5f7f753/attachment.html>


More information about the Bf-python mailing list