a108532eb9
Fix for mathutils.Euler on big endian systems
...
D719 from jrestemeier with edits
2014-08-08 02:11:54 +10:00
8d3bfef538
Extended mathutils.Vector.orthogonal() to accept a 2D vector.
...
Reviewer: Campbell Barton
Differential revision: https://developer.blender.org/D668
2014-07-23 23:10:03 +09:00
a7d8f602a6
Py/API: Improve intersect_line_line with parallel lines
...
Now comparing the distance between line-intersection points
to see how close lines are - doesn't fail in the parallel case.
2014-07-21 23:22:10 +10:00
ce47231cdb
Math Lib: Add isect_point_tri_v3
...
Add to Python via mathutils.geometry
2014-07-21 16:58:17 +10:00
00b29156e0
Defines: replace ELEM3-16 with ELEM(...), that can take varargs
2014-07-20 01:33:40 +10:00
9f05588b68
Python: remove redundant casts
2014-07-01 14:10:59 +10:00
92a380d0b2
Minor changes for standalone mathutils
2014-05-17 12:06:29 +10:00
4ca67869cc
Code cleanup: remove unused includes
...
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-05-01 04:47:51 +10:00
c034a252bb
Code cleanup: quiet warnings
2014-04-29 22:37:44 +10:00
94bf67b78e
Error in last commit
2014-04-29 20:41:28 +10:00
232f19f0c2
PyAPI: Matrix.invert(ed): accept an optional fallback argument
...
This avoids try/except when its possible the matrix has no inverse.
2014-04-29 20:12:07 +10:00
409fb4da0c
Code cleanup: remove redundant matrix initialization
2014-04-29 18:13:20 +10:00
e73d0f57a3
Code cleanup: use 'const' for arrays (python)
2014-04-27 00:25:15 +10:00
dc847607b6
Change Vector.slerp to accept nonunit vectors
2014-04-18 20:49:39 +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
7199e2288f
Code cleanup: use sqrtf when input and output are float
2014-03-28 14:53:37 +11:00
e9a64e2770
Fix T39392: Python bindings for geometry.box_pack_2d() return invalid total height
2014-03-24 17:39:54 +01:00
7da2175271
KDTree: deprecate 'normal' argument
...
Normals for each kdtree node were allocated but never used,
and search args only use in particles/boids code.
2014-03-18 09:14:47 +11:00
a47137a2db
Python API: add Vector.orthogonal() method
2014-03-18 00:39:46 +11:00
06b6cd8345
PyAPI: mathutils.Vector.cross now works for 2d vectors (returns a float)
...
also fixed crash when running on large vectors (raises exception now)
2014-02-05 23:36:30 +11:00
ab6157a06a
PyAPI: noise.seed_set(), note that zero is a special case.
2014-01-30 17:56:07 +11:00
bd697dd4d7
Fix T38402: invalid message for bad type assignments (Quat, Vector)
2014-01-30 16:45:20 +11:00
a5c35fb27f
Code cleanup: use booleans where appropriate
2014-01-28 04:00:04 +11:00
63ccb26303
Code Cleanup: spelling
2014-01-17 17:35:03 +11:00
61ff3dfdda
Code Cleanup: spelling
2014-01-13 15:31:57 +11:00
da6bc87b57
Fix T38138: incorrect API docs
2014-01-09 21:49:11 +11:00
55f7a4aebc
Fix T38104: mathutils.cell_vector() always returns (0,0,0)
...
Reviewed By: brecht
2014-01-08 23:03:09 +01:00
cdeb3c3922
Fix for incorrect use of abs() in intersect_sphere_sphere_2d
2014-01-09 03:15:59 +11:00
2dba2e72b7
Code Cleanup: de-duplicate text pasting which only used the first line
2014-01-08 17:39:12 +11:00
4b30b22ecf
Fix for recent kdtree py module with MSVC
...
also remove submodule includes from mathutils.h
2014-01-07 00:53:52 +11:00
4848f9029a
Patch D133: Python wrapper for BLI_kdtree (adds mathutils.kdtree)
...
Originally by Dan Eicher, with my own fixes and adjustments (see patch page for details).
For details there are unit tests and api example usage.
doc/python_api/sphinx-in-tmp/menu_id.png
2014-01-06 20:32:34 +11:00
eb4090dadf
Fix missing check if isect_plane_plane_v3 fails to find an intersection.
2013-12-29 12:51:27 +11:00
c35fb528c5
Fix intersect_line_plane bug causing crash on Motion trail and other
...
similar potential bugs in mathutils_geometry
marking no_flip as TODO
2013-12-11 10:28:30 -02:00
2ef3f6159c
Fix T37715: Incorrect docstring
2013-12-10 00:02:37 +11:00
3e49787b01
Python API: give a better error message when creating a Matrix fails
2013-11-29 09:48:42 +11:00
4da651c8f0
Fix T37472: crash when packing UV islands.
2013-11-19 11:20:57 +11:00
b6db417ee4
code cleanup: use const's for vector args.
2013-10-12 02:19:37 +00:00
1576565932
minor changes needed for building standalone mathutils.
2013-09-14 00:30:56 +00:00
2f6c748bb9
fix [ #36020 ] SmartUV Project is messy on a cube
...
was using very simple/stupid check to rotate us islands, replace with box_fit_2d() function.
missed docstring last commit.
2013-09-11 07:10:15 +00:00
d2d1025e4a
add mathutils.geometry.box_fit_2d() to wrap BLI_convexhull_aabb_fit_points_2d()
2013-09-11 06:56:51 +00:00
ab8d88ac18
add angle_to_mat2 utility function.
2013-09-10 20:45:47 +00:00
92d94ccb08
misc minor changes
...
- make cmake osx use of -ftemplate-depth match scons.
- use array size within sizeof(), more compact.
- replace AT with __func__ where the function is unique enough.
- BLI_box_pack_2D -> 2d to match other functions.
- rename new mesh normal calculation to mesh.calc_normals_split()
2013-09-10 19:23:39 +00:00
5dbe17cc12
add 2d convex hull utility function, BLI_convexhull_2d(), and python api mathutils.geometry.convex_hull_2d()
...
uses Andrew's monotone chain 2D convex hull algorithm.
2013-09-10 07:52:10 +00:00
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
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
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
f3654ce6b6
fix incorrect docs [ #36518 ] Vector.rotate() does not return value as documented
2013-08-20 08:41:34 +00:00
7db1d6556d
code cleanup: add break statements in switch ()'s, (even at the last case).
2013-07-21 08:16:37 +00:00
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