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
2017-05-06bmesh: use 'uint' instead of 'unsigned int'Campbell Barton
no functional changes.
2016-06-12bmesh py api: expose BM_face_calc_tangent_*Campbell Barton
D1988 by @wisaac, with own edits and improvements. This improves on existing tangent calculation functions too. - BM_face_calc_tangent_auto: Chooses method based on number of sides, used by manipulator (not exposed to Python). - BM_face_calc_tangent_edge: from longest edge. - BM_face_calc_tangent_edge_pair: from longest edge-pair (most useful with quads). - BM_face_calc_tangent_edge_diagonal: edge farthest from any vertex. - BM_face_calc_tangent_vert_diagonal: vert farthest from any vertex. Also optimize BM_vert_tri_calc_tangent_edge* functions to avoid sqrt.
2016-03-14Fix T47788: Symmetrize flips multi-res dataCampbell Barton
Symmetrize was unusable with multi-res data, add an option for the bmesh operator not to flip the multi-res depth.
2016-01-14Cleanup: use BM_mesh_* prefix for BMesh functionsCampbell Barton
2015-11-27BMesh: Add API call BM_face_calc_point_in_faceCampbell Barton
Was local to knife code, but this is generally useful.
2015-11-05Fix T46692: Triangulate creates duplicate facesCampbell Barton
Caused a crash in dyntopo.
2015-11-03BMesh: inline vert-loop iteration for normal calcCampbell Barton
Calculating normals is called often (sculpting for eg), so avoid using high-level iterator here.
2015-11-03Cleanup: use 'const' for BMesh checking funcsCampbell Barton
2015-04-25Cleanup: use 8 space indent for multi-line argsCampbell Barton
2015-02-02BMesh: tool to ensure all faces are convexCampbell Barton
Access from Mesh -> Cleanup
2014-12-09Fix T42630: Triangulate returns invalid face-mapCampbell Barton
Triangulate with beautify caused a bug when there were existing edges could make the bmesh-operator return an invalid face-map. Now the beauty is calculated on the 2d-tri's resulting from polyfill, its simpler and faster.
2014-12-09Cleanup: remove scanfill define for polyfill codeCampbell Barton
also rename vars which were previously used for scanfill.
2014-11-13BMesh: shrink/fatten faces-normals in face modeCampbell Barton
nice for solid-modeling, gives better results for partial selections.
2014-09-11Fix non-deterministic editmesh normal orientationsCampbell Barton
- selecting a boundary edge would randomly point in/outside the face (now point away). - selecting 3 verts would use the first selected edge as the tangent (now use longest). - selecting 1 vert betweem edges, uses the edges to define the tangent.
2014-05-22Fix T40297: Crash while ripping an edge when autosmooth is activated.Bastien Montagne
Turned out there was still quite a few cases were indices were set dirty, but elem_index_dirty was not tagged accordingly (mostly for BM_LOOP, but a few others as well). So probably this crash was not the only one hidden here. Hopefully all possible cases were catched this time!
2014-05-13Fix T40162: Vert connect creates extra face cutting across concave NGon.Campbell Barton
We need to support cutting degenerate ngons, see: T39418 This commit disallows cuts across faces where the same vertices can create better cuts on different faces.
2014-05-13Code cleanup: rename BM_face_legal_splits -> BM_face_splits_check_legalCampbell Barton
2014-05-13BMesh: make BM_face_calc_normal_subset apart of the bmesh apiCampbell Barton
also make face normal calculation functions return normal length
2013-12-02Fix for triangulate and beauty-fillCampbell Barton
- could crash if triangulate attempted to create an existing face. - tagging edges to rotate was unreliable, don't do this anymore. now check if edge is in the array passed to the beauty function.
2013-11-30BMesh/Mesh: replace scanfill with polyfillCampbell Barton
2013-11-18Compile Fix: fix for gcc4.8 with bmesh header.Campbell Barton
2013-11-18BMesh Refactor: BKE_bmbvh_new can now be created without an EditMesh.Walid Shouman
This adds BM_bmesh_calc_tessellation() so we can get triangles from a bmesh without having to have an editmesh available.
2013-10-29Triangulate Modifier: using different ngon and quad methodsDalai Felinto
Quads: Beauty, Fixed, Fixed Alternate, Shortest Diagonal Ngons: Beauty, Scanfill * Shortest Diagonal is the default method in the modifier (popular elsewhere), but beauty is the default in Ctrl+T). * Remove the need for output slot and beauty operator to be called after Clt+T Patch with collaborations and reviewed by Campbell Barton
2013-10-08Triangulate Modifier changes - using scanfillDalai Felinto
The ear loop method is potentially too slow (OˆN). We are not using the 'beauty' option at the moment. I'll incorporate that next. (and later specific methods for quad splitting) Patch done in collaboration (and reviewed by) with Campbell Barton.
2013-09-06bmesh utility functions BM_face_as_array_loop_tri, BM_face_as_array_loop_quadCampbell Barton
also set attributes for the header and remove debug print in mask.c
2013-09-01Move GCC attributes into a centraized definesSergey Sharybin
Instead of having ifdef __GNUC__ all over the headers to use special compiler's hints use a special file where all things like this are concentrated. Makes code easier to follow and allows to manage special attributes in more efficient way. Thanks Campbell for review!
2013-08-03code cleanup: bmesh use 'const' for query functions.Campbell Barton
2013-07-22optimization: lazy initialize EditDerivedBMesh members vertexNos, polyNos.Campbell Barton
also add polyCos array which cache's face centers, gives overall ~20% speedup to drawing on a high-poly mesh in face-editmode.
2013-06-27BM_face_legal_splits - perform calculations in 2d (was using 3d vectors for ↵Campbell Barton
all 2d operations)
2013-06-27remove bmesh arg from BM_face_legal_splits(), don't use a bmesh iterator.Campbell Barton
2013-05-28fix [#35509] MedianPoint choice has bad normalsCampbell Barton
2013-04-05add BM_face_calc_center_mean_weighted() gives much better result at cost of ↵Campbell Barton
some speed.
2013-03-16fix for crash when using BM_face_calc_tessellation(), its not ensured that ↵Campbell Barton
all tris will be filled in. (effected knife project and laplacian smooth).
2013-03-13fix for crash with laplacian smooth when unselected ngons were used, volume ↵Campbell Barton
calculation assumed unselected face were not ngons. - added convenience function BM_face_calc_tessellation() to get triangles from an ngon. - expose volume function as BM_mesh_calc_volume().
2013-01-29skip calculating the normal for each face when triangulating, all callers ↵Campbell Barton
make sure its valid. also remove some commented code (more then one generation of bmesh old).
2013-01-29Triangulate modifier no longer uses bmesh operator api call, instead add a ↵Campbell Barton
BM_mesh_triangulate() function. Gives ~2x speedup in my tests on an optimized build.
2013-01-17optimize bmesh operations that use triangle BMFace's (dyn-topo and mesh ↵Campbell Barton
conversion).
2013-01-14use booleans for bmesh api.Campbell Barton
2012-04-23code cleanup: change C naming convention (so py and C api match), eg:Campbell Barton
C: BM_face_calc_area(f), Py: BMFace.calc_area()
2012-04-19code cleanup: remove unused BMesh args.Campbell Barton
2012-04-15make ngon_perimeter into a public api function and expose to python.Campbell Barton
2012-03-11fix for debug assignment left in from own commit r44778Campbell Barton
also removed private face normal update functions - they were same as public.
2012-03-04bmesh: add back feature from 2.4x Ctrl+Shift+T subdivides quads in the ↵Campbell Barton
alternate direction.
2012-02-28more header re-arranging.Campbell Barton
Some function comments were in headers, some in the C files, some in both. Moved function comments from headers into the C files.