Campbell Barton
8e46cf637c
tweak mempool loop comparisons when we know there is no chance for skipping past the last value.
...
also correct typo.
2013-08-31 02:12:31 +00:00
Campbell Barton
11c988ba00
Simplify line/plane intersection, add line_plane_factor_v3().
...
Remove no_flip option for isect_line_plane_v3(), its quite specific and only used for ED_view3d_win_to_3d().
2013-08-31 02:06:23 +00:00
Campbell Barton
09ff49755f
math api edits - replace point-normal form for a plane with dist_to_plane_v3()
...
also correct python mathutils api, was missing vector checks.
2013-08-23 14:37:22 +00:00
Campbell Barton
7db1d6556d
code cleanup: add break statements in switch ()'s, (even at the last case).
2013-07-21 08:16:37 +00:00
Campbell Barton
418011907c
remove nan copyrights from code added since blender become opensource (copy paste errors), also remove BKE_script.h
2013-07-02 10:14:59 +00:00
Campbell Barton
5018ea5e29
real fix for [ #35097 ], (curve cap flipping).
...
previous commit was incorrect, the face flipping depended on the orientation of the curve.
fix by passing the bevel direction to the fill function so we can have a reliable front/back.
This also gives some speedup for all curve filling since we can avoid calculating the normal since its already known.
2013-04-26 21:04:12 +00:00
Campbell Barton
c667f1ff10
utility function volume_tetrahedron(), for mathutils and BLI math.
2013-04-21 13:24:45 +00:00
Campbell Barton
eb66c45301
correct pyapi function intersect_line_sphere_2d() using 3d vecs when only 2d are needed.
2013-04-14 11:57:35 +00:00
Campbell Barton
f44b7868c5
add mathutils function to intersect 2 circles. Converted to C from a python script by Alex Fraser.
2013-01-28 11:52:17 +00:00
Campbell Barton
b2c66e268f
replace MIN/MAX 3,4 with inline functions
2012-12-21 05:07:26 +00:00
Campbell Barton
adf7bfa8bb
ifdef out dynstr so mathutils can be compiled as an external module again.
2012-12-08 01:16:59 +00:00
Campbell Barton
c56a911cd9
style cleanup: comments
2012-10-20 20:20:02 +00:00
Campbell Barton
25c96bc9f3
code cleanup: remove unused macros, commet some which may be useful later - or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc
2012-09-20 01:02:39 +00:00
Campbell Barton
7aeaeaf378
fix bug in mathutils.geometry.intersect_point_line() where 4D vectors were treated as 2D.
...
also change behavior to return a 2d vector when all args are 2D.
2012-08-28 11:27:46 +00:00
Campbell Barton
78ae6ac2a5
utility function to get the points inside a list of planes.
2012-06-27 09:51:22 +00:00
Sergey Sharybin
5caeeec1fe
Corrected documentation for intersect_point_quad_2d to match exactly how
...
it works in C side: only convex quads without singularities gives predictable
results.
2012-06-06 08:08:54 +00:00
Sergey Sharybin
3ef11693f5
Style cleanup: displist module
2012-05-07 06:58:03 +00:00
Campbell Barton
4c5502bfd6
code cleanup: function naming for BLI functions.
2012-05-05 00:23:55 +00:00
Campbell Barton
112162e09e
code cleanup: header cleanup
2012-04-30 14:24:11 +00:00
Sergey Sharybin
f88cfd9168
Code and style cleanup in own modules in BKE and also mball module
...
- Make sure functions are named in way BKE_<object>_<action> (same way as RNA callbacks)
- Make functions which are used by mball.c only static and remove their prototypes
from public header file.
Further cleanup is coming.
2012-04-28 16:49:00 +00:00
Campbell Barton
d5023f0e91
correction to py docs from mgschwan on IRC.
2012-04-22 08:36:39 +00:00
Campbell Barton
11d12d945e
style cleanup: python api
2012-03-26 06:55:09 +00:00
Campbell Barton
303cecf139
spelling cleanup: tesselate -> tessellate (last of these found)
2012-03-20 22:56:26 +00:00
Campbell Barton
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
Campbell Barton
70d3d1aca6
style cleanup: py/capi
2012-03-16 21:39:56 +00:00
Campbell Barton
3590076193
style cleanup - comment formatting
2012-03-03 20:36:09 +00:00
Campbell Barton
67effc8aef
use docstrings for mathutils getset's, also some formatting edits, no functional changes.
2011-12-25 11:36:26 +00:00
Campbell Barton
f3ac865cc0
picky formatting of mathutils
2011-12-24 13:26:30 +00:00
Campbell Barton
9c9099a805
formatting edits in py api, no functional changes
2011-12-18 08:50:06 +00:00
Campbell Barton
ad96dacbc5
style edit only - move parenthesis onto second line of function definition (in keeping with most of blenders code)
...
also split some long lines in own code.
2011-12-17 00:52:36 +00:00
Campbell Barton
3b9b6051d9
rename mathutils constructors to match other parts of the bpy/api (no functional changes)
2011-11-24 04:45:36 +00:00
Campbell Barton
e5f40a1aac
- pyapi mathutils.geometry.intersect_plane_plane
...
- isect_plane_plane_v3 uses better method
- minor refactor - arg name changes & some args as const.
2011-11-20 05:56:21 +00:00
Campbell Barton
ba7fbf6ae7
formatting edits & doc correction, no functional changes.
2011-11-16 03:56:34 +00:00
Campbell Barton
c993ee678a
new math utility function isect_plane_plane_v3
2011-11-13 16:28:52 +00:00
Campbell Barton
963e39e417
formatting edits only - no functional changes
2011-11-13 09:38:53 +00:00
Campbell Barton
817b6cb9a8
mathutils.geometry.distance_point_to_plane(pt, plane_co, plane_no) - utility function, BLI math version too.
2011-11-12 10:06:56 +00:00
Campbell Barton
85540d5aa7
more macro --> BLI math lib, mainly replace VECCOPY in render and blenkernel.
2011-11-06 16:38:21 +00:00
Campbell Barton
057bf2a02b
misc doc edits
...
- remove recently added sphinx reference workaround.
- tested doxygen, correct some warnings, set tab width and added pymathutils group.
- added convenience target 'make doc_doxy'
2011-11-05 01:48:10 +00:00
Campbell Barton
0d63bb005f
replace VECCOPY and QUATCOPY with inline funcs.
2011-10-28 12:40:15 +00:00
Guillermo S. Romero
82c84f4b58
Remove some more $Id$ that still were left after r41227 and r41228.
2011-10-23 19:01:59 +00:00
Guillermo S. Romero
6105199668
Remove the svn:keywords property.
2011-10-23 18:38:16 +00:00
Campbell Barton
276e5f7095
formatting edits & remove debug print.
2011-10-13 01:29:08 +00:00
Campbell Barton
9161d3ce4b
use Py_ssize_t rather than int when dealing with list sizes (original patch from Fedora but applied changes elsewhere too), also replace PyList_Size with PyList_GET_SIZE where typechecking is already done.
2011-09-06 23:46:20 +00:00
Campbell Barton
3a6158a8bf
move mathutils into its own lib.
2011-07-15 04:01:47 +00:00