Campbell Barton
ea606a7847
Merge branch 'master' into blender28
2017-10-06 21:25:33 +11:00
Campbell Barton
3df139c530
Cleanup: Math lib naming (use v3 suffix)
2017-10-06 21:06:38 +11:00
Campbell Barton
c454d816a9
Cleanup: style
2017-10-06 16:56:41 +11:00
Sergey Sharybin
2bfa061a15
Merge branch 'master' into blender2.8
...
Notes:
- Changes in paint_vertex.c were simple to merge, mainly related on passing
evaluation context.
- Conflicts in EditDM and drawmesh.c are solved using code from blender2.8
branch. Those areas are deprecated and not to be used in final release.
However, it's possible that some reference code from master is lost, so
keep attention when adding alpha support for vertex painting.
2017-10-03 12:59:06 +05:00
Campbell Barton
deb16defd5
Math Lib: distance to AABB
...
Original code by @mano-wii, modified for general use.
2017-10-02 22:07:39 +11:00
Andrea Weikert
ba67d94258
Compile fixes for MSVC:
...
* missing include for uint typedef
* macro syntax error
Reviewers: campbellbarton, fclem
Reviewed By: fclem
Differential Revision: https://developer.blender.org/D2863
2017-10-01 15:34:12 +02:00
Campbell Barton
e3fe8128e4
Merge branch 'master' into blender2.8
2017-09-29 19:55:00 +10:00
Campbell Barton
5a1954a5cb
Drop platform support for Solaris & AIX
...
These platforms didn't see maintenance in years.
This commit just removes ifdef's & cmake check.
2017-09-29 19:16:34 +10:00
Campbell Barton
9bd40cbce1
Merge branch 'master' into blender2.8
2017-09-27 11:18:23 +10:00
Campbell Barton
43b4913051
Math Lib: Add non-clamped round_* functions
...
Replace iroundf with round_fl_to_int, add other types
2017-09-27 11:13:03 +10:00
Clément Foucault
47e6d53c8a
BLI_rand : Add new low-discrepency sequences generator
2017-09-26 20:54:27 +02:00
Campbell Barton
24b083c8f3
Merge branch 'master' into blender2.8
2017-09-26 14:52:21 +10:00
Campbell Barton
aba2f8ea67
Beauty fill was skipping small faces
2017-09-26 12:59:23 +10:00
Campbell Barton
e40e29cd38
Fix T52871: beauty fill error
...
Only lock tri's facing different directions.
Needed because scanfill creates zero area faces.
2017-09-26 12:14:46 +10:00
Campbell Barton
293dc4e084
Revert "Fix T52871: BLI_polyfill_beautify_quad_rotate_calc_ex was mistakenly considering the state as degenerated"
...
This reverts commit a8f11f5422 .
Result is no longer symmetrical, will investigate a different fix.
2017-09-26 12:14:04 +10:00
Sergey Sharybin
98ba302f70
Merge branch 'master' into blender2.8
2017-09-25 18:57:43 +05:00
Germano
a8f11f5422
Fix T52871: BLI_polyfill_beautify_quad_rotate_calc_ex was mistakenly considering the state as degenerated
2017-09-23 12:59:02 -03:00
Campbell Barton
851228766e
Merge branch 'master' into blender2.8
2017-09-20 16:10:40 +10:00
Campbell Barton
f680e42a4c
Correct test ifdef in polyfill
2017-09-20 04:57:48 +10:00
Campbell Barton
16355d545b
Fix T52834: Polyfill2D fails with co-linear edges
2017-09-20 04:29:04 +10:00
Sergey Sharybin
af170839af
Merge branch 'master' into blender2.8
2017-09-19 21:08:14 +05:00
Campbell Barton
495d3c8dd7
CMake: update for renamed headers
2017-09-19 20:26:07 +10:00
Campbell Barton
7b95243240
BLI_utildefines_iter: Use for iteration helpers
2017-09-19 20:22:24 +10:00
Campbell Barton
60956397ca
Cleanup: BLI_utildefines prefix for header-only libs
...
This allows to have different macro headers without them sharing
similar names to regular C modules.
2017-09-19 20:16:05 +10:00
Campbell Barton
36f5972ed0
Avoid bias when calculating quad split direction
...
Some error checks weren't being done in both directions
when calculating the best split direction for a quad.
2017-09-19 15:10:52 +10:00
Campbell Barton
533ec46efb
Merge branch 'master' into blender2.8
2017-09-18 23:56:19 +10:00
Campbell Barton
c4fc9c4a8e
Math Lib: clamped rounding utility functions
2017-09-18 23:55:41 +10:00
Sergey Sharybin
4c1ee47707
Merge branch 'master' into blender2.8
2017-09-18 15:54:56 +05:00
Campbell Barton
990515a5a7
Math Lib: add divide_floor_i
...
Integer division that floors on negative output (like Python's).
2017-09-18 13:18:50 +10:00
Campbell Barton
4fae536f60
Merge branch 'master' into blender2.8
2017-09-15 22:44:07 +10:00
Campbell Barton
c594087488
Polyfill Beautify: option to rotate out of degenerate state
...
Needed for 3D iterative edge-rotation to avoid flipping when projected
from different angles,
but could keep zero area faces in 2D polygons.
2017-09-15 18:14:17 +10:00
Brecht Van Lommel
e2f42ff907
Merge branch 'master' into blender2.8
2017-09-06 17:23:47 +02:00
Campbell Barton
6e0fd239e3
Math Lib: normalized vector project functions
2017-09-07 00:12:43 +10:00
Campbell Barton
572b1a644f
Merge branch 'master' into blender2.8
2017-09-05 22:56:03 +10:00
Campbell Barton
4d85396fe4
Cleanup: use const
...
Also use assert w/ rotate_m4.
2017-09-05 22:45:44 +10:00
Campbell Barton
459d76ec51
BLI_kdtree: utility function to remove doubles
2017-09-03 23:43:14 +10:00
Campbell Barton
ca9801bd42
Merge branch 'master' into blender2.8
2017-08-27 16:35:51 +10:00
Campbell Barton
c90452e111
BLI_rect: Function to calculate a matrix from 2 rctf's
2017-08-27 16:19:34 +10:00
Campbell Barton
cb4884f50b
Merge branch 'master' into blender2.8
2017-08-23 20:16:47 +10:00
Campbell Barton
b9513706cb
Cleanup: mark VA_NARGS_COUNT as public
...
Was already used in two other headers, remove underscore prefix.
2017-08-23 20:16:17 +10:00
Campbell Barton
37cfa44222
Cleanup: move variadic defines to their own header
...
So we can use in headers without pulling in many other defines.
2017-08-23 20:16:17 +10:00
Campbell Barton
917d069cdb
Merge branch 'master' into blender2.8
2017-08-23 19:21:52 +10:00
Campbell Barton
81c0e643a0
BLI_string_utils: string joining utility functions
...
Includes a version that takes a separator and macros for convenience.
2017-08-23 19:17:27 +10:00
Campbell Barton
58a4c767a1
Merge branch 'master' into blender2.8
2017-08-23 16:10:45 +10:00
Campbell Barton
8899ac1550
GHash: BLI_ghash_reinsert_key utility function
...
Useful when ghash keys are reallocated.
2017-08-23 13:03:35 +10:00
Campbell Barton
673c9dce08
Merge branch 'master' into blender2.8
2017-08-12 19:08:49 +10:00
Campbell Barton
091ae0ea71
Math Lib: add isect_seg_seg_v2_point_ex
...
This exposes end-point bias argument, needed in rare cases.
2017-08-12 18:35:47 +10:00
Campbell Barton
9567529b8f
Merge branch 'master' into blender2.8
2017-08-12 00:23:49 +10:00
Campbell Barton
58ee738310
GHash: note that 'deprecated' is used for private
2017-08-11 19:10:19 +10:00
Campbell Barton
d1328feeb1
Merge branch 'master' into blender2.8
2017-08-11 10:33:39 +10:00