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-08BLI_math: add normalize functions which fit to a lengthCampbell Barton
Convenient since its common to normalize then scale, since these are inlined, use for regular normalize w/ 1.0 length.
2016-06-16BLI_math: Add double versions of functionsCampbell Barton
- mul_v3_m3v3_db - mul_m3_v3_db - negate_v3_db
2016-05-18Fix GCC/Linux build error after finite/isfinite changes.Brecht Van Lommel
2016-05-17C99/C++11: replace deprecated finite() by isfinite().Brecht Van Lommel
2016-01-04Fix T47038: Particles in Particle Edit Mode get added in completely wrong ↵Bastien Montagne
location. It also fixes another issue (crash) related to symmetric editing. Quite involved, we (try to!) fix complete broken logic of parts of particle code, which would use poly index as tessface one (or vice-versa). Issue most probably goes back to BMesh integration time... This patch mostly fixes particle editing mode: - Adding/removing particles when using generative modifiers (like subsurf) should now work. - Adding/removing particles with a non-tessellated mesh (i.e. one having ngons) should also mostly work. - X-axis-mirror-editing particles over ngons does not really work, not sure why currently. - All this in both 'modes' (with or without using modifier stack for particles). Tech side: - Store a deformed-only DM in particle modifier data. - Rename existing DM to make it clear it's a final one. - Use deformed-only DM's tessface2poly mapping to 'solve' poly/tessface mismatches. - Make (part of) mirror-editing code able to use a DM instead of raw mesh, so that we can mirror based on final DM when editing particles using modifier stack (mandatory, since there is no way currently to find orig tessface from an final DM tessface index). Note that this patch is not really nice and clean (current particles are beyond hope on this side anyway), it's more like some urgency bandage. Whole crap needs complete rewrite anyway, BMesh's polygons make it really hard to work with current system (and looptri would not help much here). Also, did not test everything possibly affected by those changes, so it needs some users' testing & validation too. Reviewers: psy-fi Subscribers: dfelinto, eyecandy Maniphest Tasks: T47038 Differential Revision: https://developer.blender.org/D1685
2015-10-11Fix warnings and remove casts by adding copy_vx_vx_uchar() functions.Brecht Van Lommel
2015-07-10BLI_math 'compare' cleanup & enhancements.Bastien Montagne
This commit: * Adds a 'compare_ff' function for absolute 'almost equal' comparison of floats. * Makes 'compare_vxvx' functions use that new 'compare_ff' one. * Adds a 'compare_ff_relative' function for secured ulp-based relative comparison of floats. * Adds matching 'compare_vxvx_relative' functions. * Adds some basic tests for compare_ff_relative. See https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ Note that we could replace our python/mathutils' EXPP_FloatsAreEqual() by BLI's compare_ff_relative (using a very small absolute max_diff), but these do not have exact same behavior... Left a comment there for now, we can do it later if/when we are sure it won't break anything!
2015-05-21Math Lib: double versions of vector funcsCampbell Barton
- add_vn_vn_d - add_vn_vnvn_d - mul_vn_db
2015-03-18Use fabsf for floatsCampbell Barton
2015-03-17BLI math vec: add 'abs' functions to get absolute values of a vector.Bastien Montagne
Unseful when handling e.g. scale, sometimes.
2015-01-09BLI_math: add vector's dot_v3v3v3() func, for when you have three points ↵Bastien Montagne
instead of two vectors.
2014-09-28Comments: clarify math libCampbell Barton
2014-08-17Knife tool: simplify hit-depth calculationCampbell 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-14Math Lib: add compare_len_squared_v3v3 from paint branchCampbell Barton
2014-07-14Math Lib: accept a limit of 0.0 when comparing vectorsCampbell Barton
2014-04-03Optimize BLI_convexhull_aabb_fit_hull_2d, avoid atan2, sin, cosCampbell Barton
add utility functions for using a 2d unit vector as a rotation matrix mul_v2_v2_cw & mul_v2_v2_ccw
2014-03-28Code cleanup: use len_v2v2_int for view zoom-scaleCampbell Barton
2013-12-05Code Cleanup: use strict flags for math lib, add inline declarationsCampbell Barton
2013-12-04Code Cleanup: correct fabsf/fabs/abs useCampbell Barton
2013-11-26Math library: minor additions sqrtf_signed and copy_v2_fl2Campbell Barton
2013-11-20Math Library: add dot_m4_v3_row_x/y/zCampbell Barton
2013-10-22add copy_v4_fl4, replace QUATSET macro.Campbell Barton
2013-10-19Move utility functions from mball to mathutilsSergey Sharybin
2013-08-20add is_finite_v# functions, use bool'sCampbell Barton
2013-07-30function renaming for own recently added BLI_math functions, suggested by ↵Campbell Barton
Brecht.
2013-07-28add inline functions getting a single axis from mul_m3_v3()Campbell Barton
2013-06-13Fix #35634: weight paint did not do z-buffer culling anymore on Windows ↵Brecht Van Lommel
after recent change to size of bool.
2013-04-11add 2d length functions for testing pixel coords. len_manhattan_v2_int, ↵Campbell Barton
len_manhattan_v2v2_int
2013-03-31Woot woot commit.Antony Riakiotakis
Stencil style texture mapping. Ready for field testing and user feedback. This commit adds stencil like brushes, like those that existed on old ptex branch. (with the exception of clip colour) To control the position of the stencil, you use Q: translation Shift - Q: scaling Ctrl - Q: rotation There's extra work that has been done to make this work: * Support for coloured overlay in vertex/texture painting * Also made A button do stroke mode selection like in sculpt mode, when mask painting is inactive. There are some TODOs to work on during bcon3: * Support tiled and stencil mode in 2D painting. Support alpha textures also. * Tidy up overlay code. There's some confusion there due to the way we use the primary brush texture sometimes for alpha, other times for colour control. WIP design docs will be in http://wiki.blender.org/index.php/User:Psy-Fi/New_Brush_Tool_Design
2013-03-09add inline function mul_project_m4_v3_zfac() to get the z-depth value from a ↵Campbell Barton
vector & mat4x4
2013-02-11style cleanup: also some typosCampbell Barton
2013-01-29fix for fix, ugh!, vertex slide with concave/convex ngons & normal flipping ↵Campbell Barton
should now work properly in all cases. ... somehow I managed to make test-cases that worked in previous commits but failed in other cases.
2012-12-23code cleanupCampbell Barton
2012-12-11define the size of matrix args for both rows/cols.Campbell Barton
2012-11-23Patch [#33196] Warning Fixes 11-16-2012Jason Wilkins
* MEM_CacheLimitier - Size type to int conversion, should be safe for now (doing my best Bill Gates 640k impression) * OpenNL CMakeLists.txt - MSVC and GCC have slightly different ways to remove definitions (DEBUG) without the compiler complaining * BLI_math inlines - The include guard name and inline option macro name should be different. Suppressed warning about not exporting any symbols from inline math library * BLI string / utf8 - Fixed some inconsistencies between declarations and definitions * nodes - node_composite_util is apparently not used unless you enable the legacy compositor, so it should not be compiled in that case. Leaving out changes to BLI_fileops for now, need to do more testing.
2012-10-10Google Summer of Code project: "Smoke Simulator Improvements & Fire".Daniel Genrich
Documentation & Test blend files: ------------------ http://wiki.blender.org/index.php/User:MiikaH/GSoC-2012-Smoke-Simulator-Improvements Credits: ------------------ Miika Hamalainen (MiikaH): Student / Main programmer Daniel Genrich (Genscher): Mentor / Programmer of merged patches from Smoke2 branch Google: For Google Summer of Code 2012
2012-10-10refactor screen foreach functions to accept float[2] arguments rather then ↵Campbell Barton
int pairs. overall means less converting between float and int (and short in some cases).
2012-10-06fix writing past array bounds in imagewraposa().Campbell Barton
also correct array sizes in othere areas.
2012-09-19fix MESH_OT_tris_convert_to_quads() limit options (uv and vertex color) were ↵Campbell Barton
not working at all.
2012-09-06code cleanup: BM_face_legal_splits() was doing some redundant assignments.Campbell Barton
2012-07-17code cleanup: spellingCampbell Barton
2012-06-13yse BLI_math for the compositor in more places.Campbell Barton
2012-05-13code cleanup: use vector math function minmax_v3v3_v3() and other minor ↵Campbell Barton
vector function edits.
2012-04-16inline function for "Newell's Method" used for normal calc.Campbell Barton
2012-03-25Fix #30638 and part of #30646.Antony Riakiotakis
Problem was that area calculation of polygons was done relative to the xy plane, and with a very obscure (to me at least) algorithm. That meant that vertical ngons would get 0 area. Commented initial code in case this is a strange optimization case that someone wants to use and used a cleaner algorithm: first project vertices to the ngon plane, defined by the normal of the ngon and the center (mean) of the ngon vertices. This will only be exact for convex and mostly planar ngons, still it is much better than the previous code. Also fixed memory leak when stretch display was on.
2012-03-25style cleanup: issues missed last commitCampbell Barton
2012-03-25style cleanup: conform to style guide - mostly operator whitespace changesCampbell Barton
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-03-14mathutils py api:Campbell Barton
Vector.angle_signed(other) for 2D vectors to get the clockwise angle between them. in BLI math its called - angle_signed_v2v2() shorthand for... atan2f((v1[1] * v2[0]) - (v1[0] * v2[1]), dot_v2v2(v1, v2)) also corrects compile error in last commit.