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-03-12BMesh: rename cryptic functionsCampbell Barton
Use expanded names for bmesh primitive operations (urmv jvke semv jfke). Use 'bmesh_kernel_' prefix, these functions aren't intended for wide use so favor readability. Remove BM_face_vert_separate, it wasn't used and only skipped step of finding correct loop of face.
2017-03-12Cleanup: styleCampbell Barton
2017-03-11BMesh: Fix BM_face_loop_separate_multiCampbell Barton
When the loop region passed in had no loops to edge-split from, it was assumed nothing needed to be done. This ignored the case where loops share a vertex without any shared edges. Now BM_face_loop_separate_multi behaves like BM_face_loop_separate. Fixed error where faces remained connected by verts in BM_mesh_separate_faces.
2017-03-11Correct recent bmesh separate additionCampbell Barton
- Was setting flag incorrectly to avoid re-use. - Check edge has loops before accessing.
2017-03-11BMesh: add BM_mesh_separate_facesCampbell Barton
Fast-path for bmesh split operator which duplicates and deletes. Use when only separating faces, currently used by the intersect tool.
2017-03-05Fix T50855: Intersect (knife) w/o separate doesn't selectCampbell Barton
2017-02-19Fix a few compiler warnings with macOS / clang.Brecht Van Lommel
2017-02-02Fix T50524: Basis shapekey editing while rendering bug.Bastien Montagne
Root of the issue was BM_mesh_bm_to_me() breaking application of basis offset to 'child' shapekeys, when called more than once from same BMesh.
2017-01-19BMesh: remove BM_face_create_ngon_vcloudCampbell Barton
Instead, add BM_verts_sort_radial_plane and use regular creation API.
2017-01-19Correct asserts, un-hiding when selected is okCampbell Barton
2017-01-19Cleanup: naming, comments assert for hide+selectedCampbell Barton
2017-01-19BMesh: improve hide-flush internal logicCampbell Barton
- flushing hidden state ran when it didn't need to. - flushing checks didn't early exit when first visible element found. - low level BM_*_hide API calls like this can use skip iterators can loop over struct members directly. No user-visible changes.
2017-01-19Fix T49807: Inset faces edge rail bugCampbell Barton
2017-01-18BMesh: Use angle_signed_on_axis_v3v3v3_v3Campbell Barton
2017-01-11Add mid_v3_v3_array function and remove redundant functionsLuca Rood
Other than implementing a `mid_v3_v3_array` function, this removes `cent_tri_v3` and `cent_quad_v3` in favor of `mid_v3_v3v3v3` and `mid_v3_v3v3v3v3` respectively. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D2459
2016-12-28Fix T49848: bevel of spiral gets bigger and bigger widths.Howard Trickey
This is the same issue as was fixed with T39486: the adjustment pass that tries to equalize different widths at either end of an edge sometimes causes the widths to get bigger and bigger. The previous fix was to let "clamp_overlap" do double duty as a way to limit this behavior. But clearly this is undiscoverable, as the current bug report shows. So I put in an "auto-limiting" mode that detects when adjustments are going crazy and then acts as if clamp_overlap were set. The reason we can't always act as if clamp_overlap is set is that certain models (e.g., Bent_test in regression tests) look bad if that is enabled.
2016-12-06Fix T50003, Bevel makes non-manifold mesh.Howard Trickey
Problem was setting prev/next faces for edges around a vertex on valence-2 vertices.
2016-11-18BMesh: invalid return from BM_mesh_validateCampbell Barton
Returned value was always false, even for valid meshes, note that this is a debug-only function. Also set internal-tag cleared.
2016-11-17BMesh: avoid using temp array for face-areaCampbell Barton
2016-11-17BMesh: minor cleanupCampbell Barton
Comment & don't use dummy pointer.
2016-11-17Cleanup: redundant index loop for monkey-createCampbell Barton
Also rename face vars (the faces aren't temp), and quiet old-style-definition warning.
2016-11-15BMesh: remove redundant link-list manipulationCampbell Barton
No need to track previous edge in vert-separate cleanup
2016-11-14BMesh: match BM_vert_find_first_loop with iterator logicCampbell Barton
Use changes from previous commit for BM_vert_find_first_loop.
2016-11-14BMesh: avoid extra calls per faces-of-vert iteratorCampbell Barton
- `bmesh_radial_faceloop_find_first` & `bmesh_disk_faceedge_find_first` can be replaced with a single call to a new function: `bmesh_disk_faceloop_find_first` - `bmesh_disk_faceedge_find_first` called `bmesh_radial_facevert_check` which isn't needed, since either the current or next loop in the cycle is attached to the edge we're looking for.
2016-11-14BMesh: use const for BM_vert_face_checkCampbell Barton
2016-11-14BMesh: minor improvement to BM_vert_face_checkCampbell Barton
No need to perform edge-of-vert then loop-of-edge check. Any vertex that has an edge with a face will be connected to a face.
2016-11-14BMesh: fix edge-rotate with w/ flipped facesCampbell Barton
Edge-rotate would randomly flip one of the faces to match the other. Also maintain active-face when rotating the edge.
2016-11-14BMesh: replace iterator with BM_face_vert_share_loopCampbell Barton
2016-11-14BMesh: remove redundant argumentCampbell Barton
2016-11-13BMesh: BM_face_exists no longer uses return argCampbell Barton
Just return the face or NULL, like BM_edge_exists(), Also for BM_face_exists_overlap & bm_face_exists_tri_from_loop_vert. No functional changes. Old code did some partial overlap checks where this made some sense, but it's since been removed.
2016-11-12BMesh: update comments, ifdef'd codeCampbell Barton
2016-11-12BMesh: Minor improvement to face-joinCampbell Barton
Pass in loops instead of edge & faces. Nearly all callers have the loop-pairs to pass in.
2016-11-09BMesh: face-join, remove redundant face assignmentCampbell Barton
Keep ifdef'd out for holes, this isn't needed currently.
2016-11-09BMesh: Cleanup, remove hole ifdefCampbell Barton
2016-11-09BMesh: face-flip, no need for temporary edge-arrayCampbell Barton
Reverse loops in-place.
2016-11-08BMesh: remove edge search when flipping facesCampbell Barton
Replace search with direct lookup.
2016-11-07BMesh: remove redundant edge-split loop initializeCampbell Barton
Would always set both first1 and first2.
2016-11-07BMesh: remove redundant array sizeCampbell Barton
Correct unhelpful comment & some comment edits. Rename 'disk_is_flagged' -> 'bm_vert_is_manifold_flagged', since the check is quite specific.
2016-11-07BMesh: minor improvement to edge-split assignmentCampbell Barton
2016-10-31BMesh: radial loop (internal API symmetry)Campbell Barton
Radial append/remove had swapped args and *slightly* different behavior. - bmesh_radial_append(edge, loop) - bmesh_radial_loop_remove(loop, edge) Match logic for append/remove, Logic for the one case where the edge needs to be left untouched has been moved to: `bmesh_radial_loop_unlink`.
2016-10-31BMesh: simplify vert & edge removalCampbell Barton
2016-10-31BMesh: remove redundant walker member & assignmentCampbell Barton
2016-10-26RangeTree API rewriteCampbell Barton
Rewrite the current range-tree API used by dyn-topo undo to avoid inefficiencies from stdc++'s set use. - every call to `take_any` (called for all verts & faces) removed and added to the set. - further range adjustment also took 2x btree edits. This patch inlines a btree which is modified in-place, so common resizing operations don't need to perform a remove & insert. Ranges are stored in a list so `take_any` can access the first item without a btree lookup. Since range-tree isn't a bottleneck in sculpting, this only gives minor speedups. Measured approx ~15% overall faster calculation for sculpting, although this number time doesn't include GPU updates and depends on how much edits fragment the range-tree.
2016-10-26BMesh: edge-net split, edge selection errorCampbell Barton
In practice I couldn't make this cause a bug, however it's a logical regression in fix for T48716. Thanks to Francesc Juhe for finding.
2016-10-16Fix assert in the wrong place, should be moved earlier to do anything.Chase Willden
Reviewed By: brecht Differential Revision: https://developer.blender.org/D2304
2016-09-28Fix T49471: Vertex Connect randomly broken.Bastien Montagne
Not sure where this comes from, but code was converting BMEdge* to BMVert* to check oflags, i.e. not accessing correct memory. Regression, to be backported to 2.78a.
2016-09-25Quiet shadow warningCampbell Barton
No need to declare new iterator for second loop.
2016-09-24Mesh: added default UVs for Monkey, improved UVs for UV Sphere and Icosphere.Peter Lu
Fixes T47488 and T47478. Reviewed By: brecht Differential Revision: https://developer.blender.org/D2224
2016-09-12Fix T49296, assert failure in Bevel code.Howard Trickey
The mesh interpolation function failed to fill a fractions-of-the-way array properly when the distances are very small but nonzero.
2016-08-18Cleanup: some bad sizeof() usages.Bastien Montagne