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
2016-07-08Cleanup: use normalize_v#_lengthCampbell Barton
2015-11-12Correct error in own matrix normalize commitCampbell Barton
2015-10-23BLI_math: add mat3_normalized_to_* functionsCampbell Barton
Many uses of matrices for rotation keep them normalized, so no need to normalize each time.
2015-10-23Cleanup: remove redundant math callsCampbell Barton
2015-10-23BLI_math: add invert_qt_normalizedCampbell Barton
When the quat is known to be unit length, so we can avoid scaling (just conjugate_qt which asserts on non unit quats).
2015-10-22BLI_math: axis_angle_to_quat_singleCampbell Barton
Useful to avoid defining a vector for an axis-aligned rotation. Matches axis_angle_to_mat3_single behavior.
2015-09-18Use squared length where possibleCampbell Barton
2015-05-01Fix T43711: dual quaternion deform bug with shearing in deform matrix.Brecht Van Lommel
This also increases the tolerances in is_orthogonal / is_orthonormal functions, which were much too low for practical purposes.
2015-04-08Partial fix for T44219Joshua Leung
Prevent crashes from out of bounds array access if an invalid rotation mode is passed to the euler rotation blenlib calculations.
2015-04-04Cleanup: redundant normalize in expmap_to_quatCampbell Barton
2015-02-01mathutils: added exponential map to QuaternionSybren A. Stüvel
Added conversion to and from exponential map representation. This representation is useful for interpolation of > 2 quaternions, or in PD controllers. Implementation in C functions quat_to_expmap, quat_normalized_to_expmap, and expmap_to_quat with Python API, unit tests and documentation. Added Quaternion.to_exponential_map() and Quaternion(3-vector) to Python API. Reviewers: campbellbarton Projects: #bf_blender Differential Revision: https://developer.blender.org/D1049
2014-11-20Fix T42638: Roll angle inconsistent flip in edit mode.Bastien Montagne
Basically, `angle_compat_rad()` was completely broken - example of result it could produce: | new angle | compat angle | result | -0.000000 | 3.141593 | -> 3.141593 ... Where 0.0 (or 2 * PI) would be expected!
2014-09-24Cleanup: use float versions of functions when in/output are floatsCampbell Barton
2014-07-30Cleanup: general cleanup in BLI_math code (mostly, use 'const' where ↵Bastien Montagne
possible, true/false for booleans, format for float litterals).
2014-07-21Math Lib: rename mul_serie_m3 to mul_m3_series & reorder argsCampbell Barton
Importantly, reversed mul_serie_m3 argument order (so it matches the m4 function)
2014-07-20Math Lib: use variable length args for mul_serie_m3,m4 (instead of trailing ↵Campbell Barton
NULL's)
2014-06-14Math Lib: mat3_to_eulo2 & mat3_to_eul2 mixed float/double differentlyCampbell Barton
replace sqrt with hypotf to avoid precision loss instead
2014-05-14Code cleanup: doxy commentsCampbell Barton
2014-04-20Code cleanup: correct abs useCampbell Barton
also minor cleanup to rotation code
2014-04-20Math Lib: faster version of rotation_between_vecs_to_mat3Campbell Barton
Use axis/angle calculation but avoid calls to sin/cos
2014-04-19Minor change to recent commit (avoid transpose)Campbell Barton
2014-04-19Math Lib: add rotation_between_vecs_to_mat3Campbell Barton
- behaves like rotation_between_vecs_to_quat - avoids calling sin,cos calls (approx 1.6x faster).
2014-04-19Math Lib: minor optimization for axis_angle_normalized_to_mat3Campbell Barton
2014-03-31Tweak slerp assert to be less pickyCampbell Barton
2014-03-31Py API: Vector.slerp(). also added interp_v3_v3v3_slerp(_safe) functionsCampbell Barton
2014-03-28Code cleanup: use sqrtf when input and output are floatCampbell Barton
2014-03-20Math Lib: add angle_qt functionsCampbell Barton
2014-03-16Fix T39210: Grid Fill is generating mesh that's inconsistent with selected ↵Bastien Montagne
edge loops Issue was in BLI's rotation_between_vecs_to_quat(), which did not handled correctly cases where both vectors are colinear. Patch by Campbell Barton and me. Issue originaly tracked down by Yan Shi, many thanks!
2014-02-27Fix T38858: Crazy spaces was unpredictable with co-linear edgesCampbell Barton
2014-02-01Math lib: add axis_angle_normalized_to_quat, use when length is knownCampbell Barton
2014-01-17Math: Code cleanupSergej Reich
Remove stray #undef directives.
2013-12-05Code Cleanup: use strict flags for math lib, add inline declarationsCampbell Barton
2013-10-22style cleanupCampbell Barton
2013-10-12Further tweak for dual quaternion armature deform problem, tweak the epsilonBrecht Van Lommel
value to solve some more cases.
2013-10-12Fix dual quaternion armature deform giving erratic results in some cases. BugBrecht Van Lommel
was encountered in a Kiribati rig file. The problem was actually in the matrix to quaternion conversion function. One problem is that it was using the wrong matrix indices in case of an ill defined matrix trace. Besides that FLT_EPSILON was too small to detect cases where float precision becomes a problem.
2013-09-11add angle_to_mat2 utility function.Campbell Barton
2013-08-23set function args in BLI_math_rotation as const where possible.Campbell Barton
2013-07-21code cleanup: add break statements in switch ()'s, (even at the last case).Campbell Barton
2013-07-19style cleanup: braces/indentationCampbell Barton
2013-06-23remove vec_rot_to_mat3(), replace with axis_angle_normalized_to_mat3()Campbell Barton
2013-05-27fix error in own recent commit, also other minor changes.Campbell Barton
2013-05-26BLI_math rename functions:Campbell Barton
- mult_m4_m4m4 -> mul_m4_m4m4 - mult_m3_m3m4 -> mul_m3_m3m4 these temporary names were used to avoid problems when argument order was switched.
2013-04-15rename axis_angle_to_mat3_no_norm() --> axis_angle_normalized_to_mat3().Campbell Barton
this matches closer to convention from existing functions - angle_v3v3() angle_normalized_v3v3(). also added assert to ensure argument given to axis_angle_normalized_to_mat3() is in fact normalized.
2013-04-15New implementation for twist brushes.Antony Riakiotakis
It has much better rotation and avoids the compression effect that old twist brushes have. Also twisting is now non periodic, meaning you can twist beyond 180 degrees. The amount of twist is also calculated relative to the angle formed after first translating the mouse away from the brush center.
2013-04-04code cleanup: use bools, (float)sin/(float)cos -> sinf/cosf, more meaningful ↵Campbell Barton
var names.
2013-02-19fix for [#34283] wasn't working in my tests (attached to original report),Campbell Barton
made bone roll get compatible angle values with the original roll.
2013-02-11style cleanup: also some typosCampbell Barton
2013-01-29skip calculating the normal for each face when triangulating, all callers ↵Campbell Barton
make sure its valid. also remove some commented code (more then one generation of bmesh old).
2013-01-21mesh-cache deform modifier,Campbell Barton
supports MDD and PC2 formats. see wiki docs: http://wiki.blender.org/index.php/Doc:2.6/Manual/Modifiers/Deform/Mesh_Cache
2013-01-12code cleanup: style and replace (float)sin, (float)cos with sinf, cosfCampbell Barton