4b188bb08c
Cleanup: use over-line for doxy comments
...
Follow our code style for doxygen sections.
2020-10-27 21:45:55 +11:00
2115232a16
Cleanup: Clang-Tidy readability-inconsistent-declaration-parameter-name fix
...
No functional changes
2020-09-04 21:04:16 +02:00
279f7ad8ac
Cleanup: Correction to previous cleanup commit
...
I somehow undid these changes again before committing, sorry for the
noise...
2020-09-02 16:31:23 +02:00
9c3fa99658
Cleanup: Correct argument names in comment
...
Names were changed in 66b12ef4ab , but the comment wasn't updated.
2020-09-02 16:26:23 +02:00
9e09b5c418
Merge newboolean branch into master.
...
This is for design task T67744, Boolean Redesign.
It adds a choice of solver to the Boolean modifier and the
Intersect (Boolean) and Intersect (Knife) tools.
The 'Fast' choice is the current Bmesh boolean.
The new 'Exact' choice is a more advanced algorithm that supports
overlapping geometry and uses more robust calculations, but is
slower than the Fast choice.
The default with this commit is set to 'Exact'. We can decide before
the 2.91 release whether or not this is the right choice, but this
choice now will get us more testing and feedback on the new code.
2020-08-28 11:01:06 -04:00
a29686eeb3
Cleanup: Blenlib, Clang-Tidy else-after-return fixes (incomplete)
...
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/blenlib` module. Not all warnings are
addressed in this commit.
No functional changes.
2020-08-07 11:23:02 +02:00
0c58970da7
Cleanup: spelling
2020-07-07 12:49:13 +10:00
d7282537f0
CD_PROP_COL datalayer
...
This implements a generic color datalayer and its functions. Based on
D5975.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D7838
2020-05-27 20:04:46 +02:00
19352bca16
Cleanup: spelling
2020-04-05 22:22:21 +10:00
89b10b8d42
BLI_math: inline clamp functions
...
These are used in some per-pixel operations such as image sampling and
color conversion, where replacing existing macro use could add overhead.
2020-03-04 11:23:00 +11:00
Tiago Chaves
14c9f64def
BLI_math: add clamp_v# and clamp_v#_v#v# utility functions
2020-03-04 10:25:44 +11:00
6f3e498e7d
Cleanup: use of 'unsigned'
...
- Replace 'unsigned' used on it's own with 'uint'.
- Replace 'unsigned const char' with 'const uchar'.
2020-02-08 01:02:18 +11:00
2ec9aa3b71
Cleanup: spelling
...
One of the corrections from last cleanup was wrong.
2019-11-21 23:30:51 +11:00
8bee9af462
BLI: double version of some math functions.
2019-08-20 21:09:55 +08:00
e12c08e8d1
ClangFormat: apply to source, most of intern
...
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-17 06:21:24 +02:00
9ba948a485
Cleanup: style, use braces for blenlib
2019-03-27 13:17:30 +11:00
de13d0a80c
doxygen: add newline after \file
...
While \file doesn't need an argument, it can't have another doxy
command after it.
2019-02-18 08:22:12 +11:00
eef4077f18
Cleanup: remove redundant doxygen \file argument
...
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
2019-02-06 15:45:22 +11:00
65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
BF-admins agree to remove header information that isn't useful,
to reduce noise.
- BEGIN/END license blocks
Developers should add non license comments as separate comment blocks.
No need for separator text.
- Contributors
This is often invalid, outdated or misleading
especially when splitting files.
It's more useful to git-blame to find out who has developed the code.
See P901 for script to perform these edits.
2019-02-02 01:36:28 +11:00
3aee3bbac7
Math Lib: varied size vector multiply
...
Needed for Python mathutils elementwise multiply.
2018-08-09 08:14:38 +10:00
bb3efe6127
Blenlib: Assert when attempting to rotate point around vector and store result in the point
...
This isn't supported since there are subsequent reads to all point coordinates
after modification started.
Probably we need to create a temp copy of point, but that's like extra CPU
ticks.
2018-02-15 11:53:57 +01:00
40ad1cf0b1
BLI: sync changes from 2.8
2017-11-14 16:10:48 +11:00
6e0fd239e3
Math Lib: normalized vector project functions
2017-09-07 00:12:43 +10:00
1d966ca7a1
Math Lib: add angle_on_axis_v3v3_v3
...
Use for calculating the angle between 2 directions on an axis.
Also signed version and normalized plane projection,
use when input is normalized.
2017-06-16 01:27:58 +10:00
55a3d48046
Docs: diagram for reflect_v3_v3v3
2017-04-21 17:27:20 +10:00
1dbaf0dbcc
Add mid_v3_v3_array function and remove redundant functions
...
Other than implementing a `mid_v3_v3_array` function, this removes
`cent_tri_v3` and `cent_quad_v3` in favor of `mid_v3_v3v3v3` and
`mid_v3_v3v3v3v3` respectively.
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D2459
2017-01-10 19:58:34 -02:00
b32408eff8
BLI_math: move interp_*_cubic to its own function
2016-07-11 17:16:35 +10:00
66b12ef4ab
BLI_math: cleanup arg names
...
project functions arg naming made it hard to tell which vector was projected onto.
2016-06-12 15:39:04 +10:00
2630207ada
Fix GCC/Linux build error after finite/isfinite changes.
2016-05-17 23:40:25 +02:00
21fddf7d1c
C99/C++11: replace deprecated finite() by isfinite().
2016-05-17 21:39:16 +02:00
48d3a8b54b
Math Lib: inline project_plane_v3_v3v3
2016-05-03 13:48:00 +10:00
dbf1257b14
Minor optimization for scanfill
...
Replace angle with with cosine calculation.
2016-04-20 09:53:40 +10:00
ecf0529efd
Quiet warning
2015-09-24 15:17:02 +10:00
6ee653352b
Math Lib: double versions of vector funcs
...
- add_vn_vn_d
- add_vn_vnvn_d
- mul_vn_db
2015-05-21 21:06:29 +10:00
e5e73ccc90
Math Lib: rename fill_*, to copy_*
...
matching convention for fixed length api, eg: copy_v3_fl
2015-05-05 17:08:29 +10:00
a4965249ec
Math Lib: add range_vn_u
2015-04-28 06:54:50 +10:00
01b1eb445c
Math Lib: add project_plane_v3_v3v3
...
Useful for projecting one vector onto another (as a plane).
This is a rather common operation,
doing inline isn't always obvious whats happening.
2015-04-08 23:01:37 +10:00
9ffc66b1c0
Math Lib: add mid_v3_v3v3v3v3
2015-03-09 20:26:09 +11:00
225f68c324
Fix interpolation functions ignoring number of components when doing early output
2015-02-24 00:36:33 +05:00
e442b9916e
BLI_math vectors: add minmax_v3v3_v3_array to get min and max values on each components of an array of 3D vectors.
2015-02-05 14:00:58 +01:00
aba5fc29d5
Math Lib: use higher precision for vector printing
...
Only use for debugging, where precision is often important.
2014-09-17 00:33:38 +10:00
74758576fc
Cleanup: general cleanup in BLI_math code (mostly, use 'const' where possible, true/false for booleans, format for float litterals).
2014-07-30 12:19:41 +02:00
9c48ea3979
Math Lib: add function to get signed angle about an axis
2014-07-09 11:15:08 +10:00
c6a34e047c
Correct ortho_v2_v2 arg size
2014-05-27 14:42:22 +10:00
35380cdcad
Fix for uninitialized unit_use_radians variable with inset and bevel
2014-05-06 19:20:03 +10:00
233dac1494
Math Lib: increase epsilon for ortho_basis_v3v3_v3
...
passing in a unit length vector wouldn't always compute unit length vectors because the epsilon tested was too small.
2014-04-16 21:07:28 +10:00
55f83e36cc
Py API: Vector.slerp(). also added interp_v3_v3v3_slerp(_safe) functions
2014-03-31 13:28:37 +11:00
6aa75d3b2c
Fix for error in normalize_vn_vn(), add len_squared_vn
2014-03-31 11:19:32 +11:00
480c5019bb
Code cleanup: reflect_v3_v3v3 made redundant copies
2014-03-30 12:28:09 +11:00
7199e2288f
Code cleanup: use sqrtf when input and output are float
2014-03-28 14:53:37 +11:00