Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-02-27use LIKELY/UNLIKELY macros for operations that run a lot.Campbell Barton
2012-02-25code cleanup: white space, spelling & ';;' end of lines.Campbell Barton
2012-02-24typo cleanup, no functional changes.Campbell Barton
2012-02-17unify include guard defines, __$FILENAME__Campbell Barton
without the underscores these clogged up the namespace for autocompleation which was annoying.
2012-02-11use ValueError when vector/matrix multiplications sizes are not supported, ↵Campbell Barton
was using TypeError for mat*vec and ValueError for vec*mat.
2012-02-08correct 2 sphinx warnings.Campbell Barton
2012-02-08Correct mathutils documentation, also correct some python spelling errors ↵Campbell Barton
and add makefile target `check_spelling`
2012-02-02Fix for possible memory leak on creation of a vector using Vector.Range.Andrew Hale
It was possible to allocate an array of size<2 which would then raise an error on vector creation without freeing. Fix to ensure the behaviour of Vector.Range was the same as for builtin range() function. When specifying 3 arguments, the step argument wasn't being used to correctly calculate the vector size. Minor formatting edits for error messages.
2012-02-01Fixes to Python matrices str function.Andrew Hale
1) The width of columns was incorrectly determined on windows, fixed by increasing the size of the dummy buf. 2) Added additional brackets to string for consistent formatting
2012-01-31apply back changes made since moving this file.Campbell Barton
2012-01-31svn cp \Campbell Barton
https://svn.blender.org/svnroot/bf-blender/trunk/blender/source/blender/python/generic/noise_py_api.c@r42248 \ https://svn.blender.org/svnroot/bf-blender/trunk/blender/source/blender/python/mathutils/mathutils_noise.c
2012-01-31previous move lost history on this file, restoring next commit.Campbell Barton
2012-01-24Add the .Identity() classmethod to mathutils matrices. This allows the userAndrew Hale
to create an identity matrix of a specific size without having to specify all the values in the matrix and then use the .identity() method.
2012-01-16middle mouse jump scrolling for text window.Campbell Barton
2012-01-16Change function for nb_invert so that ~matrix returns the inverted matrix ↵Andrew Hale
rather than inverting inplace.
2012-01-03fixes to mathutils from Andew HaleCampbell Barton
- docstring edits - normalize ignores W axis as its supposed to.
2012-01-02slice and iterator access for matrix.col/row so you can do...Campbell Barton
a, b = mat.col[0:2] and... for a in mat.col: ...
2011-12-30PyAPI - remove Matrix.row_size / col_size. these were rather awkwardly ↵Campbell Barton
named, but its more clear to use len(). mat.col_size --> len(mat.row) mat.row_size --> len(mat.col)
2011-12-26formatting edits & minor correctionsCampbell Barton
2011-12-26fix for a bug in mathutils when a vector was accessing a matrix and the ↵Campbell Barton
matrix size increased, future access too the vector would write past the allocated bounds. now raise an exception.
2011-12-25use docstrings for mathutils getset's, also some formatting edits, no ↵Campbell Barton
functional changes.
2011-12-24picky formatting of mathutilsCampbell Barton
2011-12-24mathtils, convenience attributes added 'row' and 'col', this makes the ↵Campbell Barton
row/col swap a lot easier to deal with, since now you can still use column access previously... mat[2] = 1, 2, 3 needed to be converted into... mat[0][2] = 1 mat[1][2] = 2 mat[2][2] = 3 but with column access you can do... mat.col[2] = 1, 2, 3 Having 'row' attribute is a bit redundant since direct indexing on a matrix uses row but included for completeness.
2011-12-24fix for error with matrix access and negative indices with recent row/col swap.Campbell Barton
2011-12-24mathutils get/set function rename + minor changes to matrix functions (no ↵Campbell Barton
functional changes)
2011-12-22patch [#29534] Change Matrix Representation and Access in Python to Conform ↵Campbell Barton
with Standard Notation from Andrew Hale Scripts which access matrix row/columns directly and scripts that create new matrices with elements defined will need updating. For more info see... * Guide for updating scripts http://wiki.blender.org/index.php/User:TrumanBlending/Matrix_Indexing * Discussion thread http://markmail.org/message/4bpqpxkcvq4wjyfu
2011-12-22Matrix.translation wrapper vector, continent accessing to matrix[3][0:3].Campbell Barton
this is a part of patch 29534, being applied separately from patch [#29534] Change Matrix Representation and Access in Python to Conform with Standard Notation by Andrew Hale (trumanblending)
2011-12-22cleanup and some fixes to mathutils by Andrew HaleCampbell Barton
* 1. Resize 4x4, code was ridiculously complex (cleanup only) * 2. matrix * matrix checking for compatibility wasn't working right (bug in last release) * 3. fix for result size for matrix * vector if matrix is 4x4 and vector size 3 (bug in recent patch) * 4. fix for result size vector * matrix if matrix is 4x4 and vector size 3 (bug in recent patch)
2011-12-21fix for mathutils mat*vec for non sqyare matrices by Andrew HaleCampbell Barton
2011-12-20recent commit missed swapping args for MATRIX_ITEM in mathutils_Vector.c, ↵Campbell Barton
breaking matrix*vector.
2011-12-20patch [#29662] Modifications to Mathutils Vectors for Consistency with ↵Campbell Barton
Commit 42752 from Andrew Hale
2011-12-20rename internal matrix struct member vars to avoid confusionCampbell Barton
Matrix.contigPtr --> matrix Matrix.row_size --> num_col Matrix.col_size --> num_row
2011-12-20__str__ functions for other mathutils typesCampbell Barton
2011-12-20patch [#29651] Add a __str__ Method to Matutils Matrices so print(matrix) ↵Campbell Barton
Shows Columns as Columns from Andrew Hale converted from python string formatting to using BLI_dynstr
2011-12-19corrections to some commentsCampbell Barton
2011-12-19- mathutils matrix creation - use memcpy rather than copying every matrix ↵Campbell Barton
row/col individually. - creating a new non-square matrix would use uninitialized memory.
2011-12-19remove mathutils internal variable for storing pointers to each matrix row, ↵Campbell Barton
instead use macros to access row/column's. also add an assert so invalid index access will raise an error in debug mode, without this it was quite easy to access invalid memory without meaning to. no functional change.
2011-12-18formatting edits in py api, no functional changesCampbell Barton
2011-12-18Support for arbitrary sized vectors - (was limited by 2-4 previously)Campbell Barton
patch http://codereview.appspot.com/5482043 from Andrew Hale * Text from the submission * This patch adds the ability to use arbitrary sized vectors from mathutils. Currently vectors are only of size 2, 3 or 4 since they are generally restricted to geometric applications. However, we can use arbitrary sized vectors for efficient calculations and data manipulation.
2011-12-17style edit only - move parenthesis onto second line of function definition ↵Campbell Barton
(in keeping with most of blenders code) also split some long lines in own code.
2011-12-14fix for py noise doc string (not a show stopper :) )Campbell Barton
2011-11-30formatting edits (120 width max) and remove some redundant castsCampbell Barton
2011-11-29treat 4d vectors as 3d for vector.angle(other)Campbell Barton
2011-11-29patch [#29421] Python Noise Module UpdatesCampbell Barton
from Andrew Hale (trumanblending) Tracker description ******************* The current python noise module included with Blender has yet to be updated to the new Py API. This patch does so, with the following major points: - The noise module has now been moved to a submodule of mathutils, it can be accessed by mathutils.noise. It was moved from it's own module as it will now return mathutils types and also have greater visibility to the user. - All functions which return vectors will now return mathutils.Vector types to be consistent with the rest of the API. Previously (x, y, z) tuples were returned. - A different implementation of random_unit_vector is now used, this allows 2D, 3D and 4D vectors to be returned. Previously only 3D was possible. - Some function names have been changed to remove ambiguities and make naming consistent within the module. noise.vector is now noise.noise_vector and noise.vl_vector is now noise.variable_lacunarity - Doc strings have been updated to be compatible with auto docs. - Code style and internal naming has been changed to match the conventions in other mathutils code. Thanks, Andrew
2011-11-24pep8 edits and avoid naming conflicts with python builtinsCampbell Barton
2011-11-24rename mathutils constructors to match other parts of the bpy/api (no ↵Campbell Barton
functional changes)
2011-11-24patch: [#29382] Arbitrary Length Array Function Additions and ModificationsCampbell Barton
from Andrew Hale (trumanblending), with some edits to use these in mathutils.Vector added. Added Functions: - dot_vn_vn - Dot product of two arrays - normalize_vn_vn - Normalize an array and store the result in a second array - normalize_vn - Normalize an array inplace Renamed Functions: Some functions have been renamed to make them consistent with the naming conventions used by fixed length array functions. - fill_vni to fill_vn_i - fill_vn to fill_vn_fl
2011-11-20- pyapi mathutils.geometry.intersect_plane_planeCampbell Barton
- isect_plane_plane_v3 uses better method - minor refactor - arg name changes & some args as const.
2011-11-16formatting edits & doc correction, no functional changes.Campbell Barton
2011-11-13new math utility function isect_plane_plane_v3Campbell Barton