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
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
2011-11-13formatting edits only - no functional changesCampbell Barton
2011-11-13include invalid type name in mathutils error messages.Campbell Barton
2011-11-12mathutils.geometry.distance_point_to_plane(pt, plane_co, plane_no) - utility ↵Campbell Barton
function, BLI math version too.
2011-11-11quiet -Wdouble-promotion warningsCampbell Barton
2011-11-06more macro --> BLI math lib, mainly replace VECCOPY in render and blenkernel.Campbell Barton
2011-11-05misc doc editsCampbell Barton
- remove recently added sphinx reference workaround. - tested doxygen, correct some warnings, set tab width and added pymathutils group. - added convenience target 'make doc_doxy'
2011-11-02new math function: Quaternion.to_axis_angle().Campbell Barton
add in safety checks for inf/nan values which could happen in some cases.
2011-10-28replace VECCOPY and QUATCOPY with inline funcs.Campbell Barton
2011-10-23Remove some more $Id$ that still were left after r41227 and r41228.Guillermo S. Romero
2011-10-23Remove the svn:keywords property.Guillermo S. Romero
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-17fix spelling mistakes in comments (and in some python error messages), ↵Campbell Barton
nothing to effect translations.
2011-10-17docs / clenup (no functional code changes)Campbell Barton
- added API examples for mathutils.Color/Euler/Quaternion/Matrix. - corrected own bad spelling matricies --> matrices. - minor pep8 edits. - update CMake ignore file list.
2011-10-13formatting edits & remove debug print.Campbell Barton
2011-10-10fix documentation error - [#28862] Method 'difference' doesn't exist in ↵Campbell Barton
Quaternion object.
2011-10-02enable cmake building makesdna with ghashCampbell Barton
2011-10-02remove some redundant checks and compiler warnings.Campbell Barton
2011-09-19edits to argument parsing for Euler.rotate_axis, also corrected some ↵Campbell Barton
exception messages and minor style edits.
2011-09-19add back mathutils Matrix() * Vector(), this is row_vector multiplication.Campbell Barton
some minor changes to exception messages.
2011-09-19Move function out of mathutils to: BLI_math_rotation --- ↵Campbell Barton
single_axis_angle_to_mat3(mat3, axis, angle), copied out from mathutils, axis arg is a char 'X/Y/Z' rather then a vector like axis_angle_to_mat3().
2011-09-07use Py_ssize_t rather than int when dealing with list sizes (original patch ↵Campbell Barton
from Fedora but applied changes elsewhere too), also replace PyList_Size with PyList_GET_SIZE where typechecking is already done.
2011-08-16remove support for deprecated Vector() * Matrix(), eventually this will be ↵Campbell Barton
added back as row_vector_multiplication bu to avoid confusion for a bit just disable it altogether so script authors get an error on use and update their scripts.
2011-08-11Adding a readonly length_squared property to mathutils.Vector. This is ↵Mitchell Stokes
simply vector.dot(vector), so nothing new is really added, but it's nice for writing more intent revealing code. In other words: if vec.dot(vec) > some_distance*some_distance: do_something() might not be quite as obvious looking as: if vec.length_squared > some_distance*some_distance: do_something() As to why you'd want to use length_squared over length is that length uses a square root, which isn't always necessary for simple distance checks (e.g., closest object, checks like the ones above, ect).
2011-07-25deprecate multiplication orders:Campbell Barton
vector * matrix vector *= matrix vector * quaternion vector *= quaternion Use the reverse order instead, enable WITH_ASSERT_ABORT in cmake to promote the warnings into errors.
2011-07-21revert recent matrix multiplication patch:Campbell Barton
[#28032] Python Mathutils: Matrix Multiplication Error Since they ended up reversing the order we better keep old code unless its proven to be incorrect. also change Matrix.__repr__ function args to evaluate correctly (need to be inside a tuple).
2011-07-20patch [#28032] swapped matrix multiplication order, reverse it back, tested ↵Campbell Barton
with FBX, BVH import/export which are very sensitive to changes in matrix rotation.