Brecht Van Lommel
4da2acae3a
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3668
2018-09-03 16:55:01 +02:00
Campbell Barton
0ddf3e110e
Cleanup: comment blocks
2018-09-02 18:51:31 +10:00
Campbell Barton
fe8d8aa27e
Fix Vector.project crash w/ >4 length vectors
2018-07-27 17:41:20 +10:00
Philipp Oeser
96b4e43e8d
Fix T55527: creating a Quaternion without args should result in identity
...
quaternion
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D3487
2018-07-16 15:03:21 +02:00
Campbell Barton
a69f985f40
PyAPI: move deep-copy args check to py_capi_utils
2018-06-26 09:31:57 +02:00
Campbell Barton
7719c11006
Cleanup: strip trailing space in Python module
2018-06-04 08:54:40 +02:00
Campbell Barton
75fc1c3507
Cleanup: trailing whitespace (comment blocks)
...
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01 18:19:39 +02:00
Bastien Montagne
a3b4c3823c
Fix T54966: mathutils.noise.voronoi Memory leak
...
C code was not correctly handling release of temp data, not technically
a memory leak, but indeed rather annoying bug! ;)
2018-05-07 11:07:11 +02:00
Campbell Barton
f48895f74a
Correct accidental changes by C Logging addition
...
Error in 891c1cfc9a
2018-04-01 10:23:28 +02:00
Campbell Barton
891c1cfc9a
C Logging: use instead of printf for messages
...
- See `--log` help message for usage.
- Supports enabling categories.
- Color severity.
- Optionally logs to a file.
- Currently use to replace printf calls in wm module.
See D3120 for details.
2018-03-30 18:57:41 +02:00
Aaron Carlisle
0f6d52cd29
PyDocs: Adde link to Wikipedia page for mathutils.Euler class
...
This update adds a link to the Wikipedia article "Euler angles" to the description of the mathutils.Euler class.
I initially was not sure what a "Euler" represented in Blender API, but found the Wikipedia article helpful. I believe others will find the link helpful too if it appears in the class documentation.
This is similar to the Wikipedia links that appear in the mathutils.Matrix class, e.g: https://docs.blender.org/api/blender_python_api_current/mathutils.html?highlight=euler#mathutils.Matrix.adjugate
Author: @justasb
Reviewers: campbellbarton, trumanblending, Blendify
Reviewed By: Blendify
Subscribers: Blendify
Tags: #bf_blender
Differential Revision: https://developer.blender.org/D3077
2018-03-29 14:25:13 -04:00
Jeroen Bakker
7729966af1
Fixed typo Python API
...
`mathutils.geometry.barycentric_transform` used `tri_a[1-3]` for the
target triangle, but in fact they are `tri_b[1-3]`
2018-03-19 08:19:48 +01:00
Campbell Barton
2aa0bde3dc
mathutils: replace interp w/ blend when standalone
2018-03-18 05:08:12 +01:00
Campbell Barton
deacb3d6b8
Cleanup: add 2d suffix to BLI files
...
Some of these API's can have 3D versions, explicitly name them 2D.
2018-02-18 21:27:33 +11:00
Sybren A. Stüvel
7b3e441bcf
Improved docstring of mathutils.Matrix.lerp()
2018-01-18 09:58:14 +01:00
Sybren A. Stüvel
9811150952
Improve docstring for mathutils.Matrix.decompose()
2018-01-18 09:38:01 +01:00
Campbell Barton
c17c6557b4
PyAPI: add function to check any mathutils type
...
Also add CheckExact versions of type checking macros.
2017-11-29 16:13:26 +11:00
Campbell Barton
1d409defbf
Docs: clarify return value for BVH API
2017-10-27 16:14:24 +11:00
Campbell Barton
959a58da9e
Cleanup: redundant casts
2017-10-20 14:03:22 +11:00
Campbell Barton
0c82a6fec8
Cleanup: unused define
2017-09-22 07:23:03 +10:00
Campbell Barton
3c3d0898b0
PyAPI: Fix mathutils freeze allowing owned data
2017-09-09 11:08:38 +10:00
Campbell Barton
30d8829780
Docs: mathutils docstrings
2017-09-09 11:02:26 +10:00
Campbell Barton
90eb93791f
Cleanup: mathutils vector comments
...
Use doxy markup & correct outdated info.
2017-09-09 10:50:40 +10:00
Campbell Barton
3930e46e37
Correct last commit
2017-09-09 10:15:16 +10:00
Campbell Barton
002cc6aef3
Cleanup: Simplify SWIZZLE macro
...
- Use indices instead of character args.
- Use numbered macros instead of variadic args.
Parsing using rtags used over 11gb of memory. While this should be
resolved upstream (report as #1053 ), the extra complexity didn't give
any real advantage.
2017-09-09 10:10:05 +10:00
Campbell Barton
691ed21842
PyAPI: replace PyC_FromArray with typed functions
...
This was meant to be generic but introduced possible type errors
and unnecessary complication.
Replace with typed PyC_Tuple_PackArray_* functions.
Also add PyC_Tuple_Pack_* macro which replaces some uses of
Py_BuildValue, with the advantage of not having to parse a string.
2017-08-22 18:10:57 +10:00
Campbell Barton
46cf33bf01
PyAPI: Make use of PyC_LongAs... API
...
Avoids setting exceptions inline,
also use Matrix_ParseAny for bmesh.ops.
Some inline exceptions are kept because they show useful details.
2017-08-20 15:49:10 +10:00
Campbell Barton
1cc4033df8
PyAPI: expose matrix parsing function
2017-08-19 21:36:50 +10:00
Bastien Montagne
c034193821
Cleanup: remove useless DM_ensure_looptri().
...
That one was doing exactly same thing as `dm->getLoopTriArray()`, no
point in having twice the same code here...
2017-08-11 17:08:41 +02:00
Aaron Carlisle
df7c609fda
PYAPI: Fix mathutils doc structure
2017-06-14 16:47:43 -04:00
Brecht Van Lommel
98df7d778f
Fix T51287: Matrix.lerp fails w/ shear
...
Use interp_m4_m4m4 (wraps Eigen),
`MATH_STANDALONE` will need to be updated to support this.
2017-05-26 17:02:27 +10:00
Campbell Barton
81e584ed17
CMake: Use GCC7's -Wimplicit-fallthrough=5
...
Use to avoid accidental missing break statements,
use ATTR_FALLTHROUGH to suppress.
2017-05-20 14:01:03 +10:00
Sybren A. Stüvel
349cafac52
Matrix.decompose(): changed terminology, "location" → "translation"
...
Matrix.decompose() should either return "location, orientation, size" or
"translation, rotation, scale". Since there are constructors for the former,
I've replaced "location" in the documentation with "translation".
The code is still the same, I just changed the documentation.
2017-04-21 15:51:35 +02:00
Aaron Carlisle
c7a4f96f88
Pydoc: Change Wikipedia links and grammar in mathutils matrix code
2017-03-22 14:54:22 -04:00
Campbell Barton
3b467b35a8
Fix T50029: BVHTree.FromPolygons memory leak
2016-11-29 19:32:41 +11:00
Aaron Carlisle
cf9a6b416c
API: Fix Links
...
Self-explanatory. to find broken links run `sphinx-build -b linkcheck sphinx-in sphinx-out`
Reviewers: mont29
Tags: #bf_blender, #python, #infrastructure:_websites
Differential Revision: https://developer.blender.org/D2297
2016-10-25 17:34:01 +02:00
Campbell Barton
81f4bc1665
Cleanup: reduce Vector_getseters size using macros
2016-07-31 20:43:52 +10:00
Campbell Barton
cca57bf04c
PyAPI: Use module names on initializaton
...
No need to re-convert from C strings to PyUnicode.
2016-07-14 15:51:56 +10:00
Campbell Barton
3df30c1a6e
Cleanup: parenthesize defines
2016-06-01 00:19:01 +10:00
Brecht Van Lommel
21fddf7d1c
C99/C++11: replace deprecated finite() by isfinite().
2016-05-17 21:39:16 +02:00
Campbell Barton
722d586257
Fix T47993: noise_vector ignores random seed
...
Replace hard coded values with offsets derived from the random seed.
2016-03-30 20:43:43 +11:00
Campbell Barton
26f2fe9528
mathutils.bvhtree: Add find_nearest_range API call
...
Returns all elements within a radius.
Similar to kdtree.find_range
2016-03-19 18:31:56 +11:00
Campbell Barton
4e500101a7
Cleanup: quiet -Wcomma, cast to void where needed
2016-03-05 09:16:12 +11:00
Campbell Barton
b285394acc
PyAPI: correct function name w/ arg parsing
2016-02-29 09:00:21 +11:00
Campbell Barton
9c21015c26
Fix crash in bvhtree.FromPolygons
2016-02-12 19:12:58 +11:00
Campbell Barton
c7608ef359
Fix T47337: BVHTree.find_nearest missing
...
Method wasn't named as documented.
2016-02-08 08:29:46 +11:00
Mike Erwin
a1d7f67d81
cleanup: spelling / typos
...
no functional changes
2016-01-28 00:30:50 -05:00
Campbell Barton
4f8b7f4420
Docs: quiet warnings in reference doc syntax
2016-01-25 20:26:39 +11:00
Campbell Barton
de356415ae
Correct comments & some explanation from last commit
2016-01-21 11:03:37 +11:00
Campbell Barton
a1164ce271
Remove errors for unsupported math operations
2016-01-21 10:30:17 +11:00