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
2021-08-12Cleanup: spelling in commentsCampbell Barton
2021-08-09Cleanup: spelling in commentsCampbell Barton
2021-07-19Cleanup: minor correction to delaunay_2d_cdt doc-stringCampbell Barton
Use more conventional syntax for default arguments.
2021-07-18Update documentation string for mathutils.geometry.delaunay_2d_cdt.Howard Trickey
2021-07-18Make it optional to track input->output mapping in delaunay_2d_calc.Howard Trickey
Some uses of delaunay_2d_calc don't need to know the original verts, edges, and faces that correspond to output elements. This change adds a "need_ids" value to the CDT input spec, default true, which tracks the input ids only when true. The python api mathutils.geometry.delaunay_2d_cdt gets an optional final bool argument that is the value of need_ids. If the argument is not supplied, it is true by default, so this won't break old uses of the API. On a sample text test, not tracking ids save about 30% of the runtime. For most inputs the difference will not be so dramatic: it only really kicks in if there are a lot of holes.
2021-07-03Cleanup: consistent use of tags: NOTE/TODO/FIXME/XXXCampbell Barton
Also use doxy style function reference `#` prefix chars when referencing identifiers.
2021-06-26Cleanup: full sentences in comments, improve comment formattingCampbell Barton
2021-06-07Cleanup: remove redundant cast, use const castsCampbell Barton
2020-11-18Cleanup: simplify array usage for Python box packing APICampbell Barton
2020-11-07Cleanup: move plane array intersection into a functionCampbell Barton
Also add check to ensure a point isn't occluded by it's own plane, which could happen if a small epsilon values are passed in.
2020-09-29API docs: Fix sytax error for delaunay_2d_cdAaron Carlisle
Alternative solution to https://developer.blender.org/D8546
2020-08-28Merge newboolean branch into master.Howard Trickey
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-20Cleanup: use const variables where possible in the Python APICampbell Barton
2020-08-07Cleanup: Python, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/python` module. No functional changes.
2020-07-13Clang Tidy: enable readability-non-const-parameter warningJacques Lucke
Clang Tidy reported a couple of false positives. I disabled those `NOLINTNEXTLINE`. Differential Revision: https://developer.blender.org/D8199
2020-05-11Fix mathutils box_pack_2d docstringPhilipp Oeser
Differential Revision: https://developer.blender.org/D7667
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-02-29Made BLI_delaunay_2d_cdt_calc better at tiny feature elimination.Howard Trickey
The 'random' unit tests and some examples from the new boolean code triggered asserts and crashes. This fixes those. There is a new flag in the input that optionally disables a pass over input to snap segment edges to other segments.
2020-02-20Cleanup: use named unsigned types in the Python APICampbell Barton
2020-01-27Document that tessellate_polygon() doesn't handle degenerate geometrySybren A. Stüvel
This 'fixes' T68554: 'API mathutils.geometry.tessellate_polygon returns bad results sometimes' by documenting the limitations of the current implementation. I've also added a unit test for the function, so that any change in this behaviour will get noticed. No functional changes.
2019-11-06Mathutils: expose the utility to find the closest point of a triangle.Alexander Gavrilov
This computation is complex and useful enough to expose the existing C math utility used by BVH nearest to Python. Otherwise this requires the use of intersect_point_tri and multiple intersect_point_line calls with some added vector math. Differential Revision: https://developer.blender.org/D6200
2019-10-09PyAPI: drop Vector requirement for tessellate_polygonCampbell Barton
Use mathutils_array_parse which converts any sequence of numbers.
2019-10-09PyAPI: avoid normal calculation for tessellate_polygonCampbell Barton
Use fixed normal for 2D input, no need to calculate it.
2019-08-17Cleanup: spellingCampbell Barton
2019-08-16Cleanup: spellingCampbell Barton
2019-08-13Add mathutils.geometry.delaunay_2d_cdt() function to Python API.Howard Trickey
Provides Python API access to recently added Constrained Delaunay Triangulation routine. Reviewed in D5467.
2019-08-11BLI_math: add isect_tri_tri_v2, wrap via mathutils.geometryCampbell Barton
2019-06-12Cleanup: spelling in commentsCampbell Barton
2019-04-29Cleanup: comments (long lines) in pythonCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
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-03-29Cleanup: style, use braces for the Python APICampbell Barton
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-11-14Cleanup: python doc-stringsCampbell Barton
Indentation & trailing space.
2018-09-19Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3700
2018-03-19Fixed typo Python APIJeroen Bakker
`mathutils.geometry.barycentric_transform` used `tri_a[1-3]` for the target triangle, but in fact they are `tri_b[1-3]`
2018-02-18Cleanup: add 2d suffix to BLI filesCampbell Barton
Some of these API's can have 3D versions, explicitly name them 2D.
2017-10-20Cleanup: redundant castsCampbell Barton
2017-08-22PyAPI: replace PyC_FromArray with typed functionsCampbell Barton
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.
2016-01-28cleanup: spelling / typosMike Erwin
no functional changes
2016-01-25Docs: quiet warnings in reference doc syntaxCampbell Barton
2015-10-13Fix T46002: mathutils.geometry.intersect_line_line_2d doesn't operate on ↵Bastien Montagne
lines, but on line segments. Ugly issue really, but at least doc now matches behavior of the function. :|
2015-09-04Math Lib: Use plane intersect from graphics-gemsCampbell Barton
2015-08-22Cleanup: spellingCampbell Barton
2015-08-04Use PyC_ParseBool to parse boolsCampbell Barton
This could cause problems since they could be any int, then passed directly to internal functions that assume bools.
2015-05-03Fix typos.Tamito Kajiyama
2015-01-29Fix T43473: mathtutils.geometry.interpolate_bezier returns only 2d coordinatesBastien Montagne
Fixed/enhanced a few usages of `mathutils_array_parse()` in this file actually...
2015-01-18Fix `mathutils.barycentric_transform()`Bastien Montagne
Dummy typo, we need a 3D vector here...