Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
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.
2018-10-24Partially revert "GPUShader: shader.uniform_float parameters"Campbell Barton
`mathutils_array_parse` is meant to parse 1d arrays of numbers. Using matrices internal memory layout is confusing since mathutils matrices are exposed as row major. Also, the matrix shape wasn't checked for. Callers that want to handle matrices should check for them explicitly.
2018-10-23GPUShader: shader.uniform_float parametersJacques Lucke
Allow to pass in single numbers, sequences and mathutils.* types into `shader.uniform_float`. Reviewers: mano-wii Differential Revision: https://developer.blender.org/D3820
2018-10-09Fix misuse of Py_INCREF in module creation.mano-wii
Differential Revision: https://developer.blender.org/D3697
2018-09-19Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3700
2018-09-13Cleanup: use PyImport_GetModuleDictCampbell Barton
Replace direct access using PyThreadState_GET
2018-09-03Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3668
2018-06-26PyAPI: move deep-copy args check to py_capi_utilsCampbell Barton
2017-09-09PyAPI: Fix mathutils freeze allowing owned dataCampbell Barton
2017-06-14PYAPI: Fix mathutils doc structureAaron Carlisle
2016-07-14PyAPI: Use module names on initializatonCampbell Barton
No need to re-convert from C strings to PyUnicode.
2015-09-13Cleanup: spellingCampbell Barton
2015-08-02Cleanup: quiet int overflow warningsCampbell Barton
2015-07-29Add mathutils.bvhtree APICampbell Barton
Originally D966 by @lukastoenne, with own additions - trees can be initialized from Object's, BMesh, or passed in as vert+polygon arrays. - original indices of ngons/faces are used. (instead of tessellated indices). - ray_cast, find_nearest methods - find overlapping faces between 2 trees
2015-07-29Optimize PySequence_Fast usageCampbell Barton
Access arrays directly, avoiding type-check every time.
2015-07-29Fix leaks in mathutils PySequence_Fast usageCampbell Barton
2015-07-13increase mathutils callback count (BGE devs, read the log)Dalai Felinto
This was causing the BGE to crash on Debug mode when built with "break on asserts", meaning the BGE was not debuggeable. Please make sure to test patches in debug mode with the proper flags enabled before committing
2015-07-10BLI_math 'compare' cleanup & enhancements.Bastien Montagne
This commit: * Adds a 'compare_ff' function for absolute 'almost equal' comparison of floats. * Makes 'compare_vxvx' functions use that new 'compare_ff' one. * Adds a 'compare_ff_relative' function for secured ulp-based relative comparison of floats. * Adds matching 'compare_vxvx_relative' functions. * Adds some basic tests for compare_ff_relative. See https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ Note that we could replace our python/mathutils' EXPP_FloatsAreEqual() by BLI's compare_ff_relative (using a very small absolute max_diff), but these do not have exact same behavior... Left a comment there for now, we can do it later if/when we are sure it won't break anything!
2015-06-17Cleanup: duplicate includesCampbell Barton
2015-06-16Cleanup: styleCampbell Barton
2015-02-15mathutils: Implement __hash__() functionsCampbell Barton
- all mathutils types - only works on frozen data (so vectors can be used in sets/dict keys) - uses same method as CPython, (matches hashing a tuple) D1104 by @juicyfruit with own modifications
2015-02-15mathutils: add freeze() method, is_frozen attrCampbell Barton
This allows you to make any mathutils object immutable.
2015-02-01Documentation: updated mathutils documentationSybren A. Stüvel
Added descriptions of the constructors, and improved the module-level documentation.
2015-01-20Properly register the `mathutils.interpolate` submodule.Lukas Tönne
2015-01-20New python submodule `mathutils.interpolate` for various mesh interpolation ↵Lukas Tönne
and weighting methods. This module will contain mirrored functions for calculating and applying weights for points on a mesh. This includes barycentric and UV weighting and possibly more advanced global weighting such as harmonic weights. The naming should follow this scheme: <type>_{2d,3d}_{calc,apply} e.g. poly_2d_calc poly_2d_apply uv_3d_calc ... Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D939
2015-01-06PyAPI: add utilities PyTuple_SET_ITEMS, Py_INCREF_RETCampbell Barton
Setting all values of a tuple is such a common operation that it deserves its own macro. Also added Py_INCREF_RET to avoid confusing use of comma operator.
2015-01-04mathutils: refactor instantiationCampbell Barton
remove 'type' argument, very few mathutils objects are wrapped, add new function for creating wrapped objects. also fixes unlikely memory leak if the data-array can't be allocated.
2014-12-30PyAPI: geometry.normal, support polygonsCampbell Barton
Previously this only supported tri/quads, now arbitrary size poly lines are supported.
2014-12-30PyAPI: allow non-vector args for geometry moduleCampbell Barton
Previously only vector args were accepted, now allow generic sequence of numbers. Was annoying to create vectors just to pass in args.
2014-05-17Minor changes for standalone mathutilsCampbell Barton
2014-01-06Fix for recent kdtree py module with MSVCCampbell Barton
also remove submodule includes from mathutils.h
2014-01-06Patch D133: Python wrapper for BLI_kdtree (adds mathutils.kdtree)Campbell Barton
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
2013-09-14minor changes needed for building standalone mathutils.Campbell Barton
2013-07-02remove nan copyrights from code added since blender become opensource (copy ↵Campbell Barton
paste errors), also remove BKE_script.h
2013-05-17bump mathutils callback slot size.Campbell Barton
2013-04-16use psys->seed for smoke random number generator, increase size of ↵Campbell Barton
MATHUTILS_TOT_CB and reduce float->double conversions.
2013-03-19fix for assert(), were not enough mathutils slots.Campbell Barton
2012-12-08ifdef out dynstr so mathutils can be compiled as an external module again.Campbell Barton
2012-12-02change uiButGetStrInfo() to use a trailing NULL arg rather then passing the ↵Campbell Barton
number of args as an arg.
2012-10-21style cleanup: commentsCampbell Barton
2012-06-26fix for a handful of memory leaks relating to parsing and allocating ↵Campbell Barton
arbitrary sized vectors from python args. Vector.dot() was always leaking memory, and would crash if args sizes didnt match. These errors were introduced with n-dimensional vector support. also fixed an error with bmesh py api allocation.
2012-04-22bmesh py api: expose BM_face_split_n() to the python api;Campbell Barton
face_fill(..., coords=(v1, v2, ...)) This is the same function the knife tool uses. should be handy for dicing up geometry in py.
2012-04-15add 'idprop' module so we can document idprop.types.*, currently doc ↵Campbell Barton
generator has no access to ID Property types.
2012-04-10fix for too small MATHUTILS_TOT_CB when the game engine runs.Campbell Barton
2012-03-30patch to add __deepcopy__ to mathutils types, this is no different to ↵Campbell Barton
__copy__, except some py utilities expect __deepcopy__ to exist, so better have them.
2012-03-26style cleanup: python apiCampbell Barton
2012-03-17minor mathutils code cleanup - use mathutils callbacks as unsigned chars ↵Campbell Barton
everywhere.