diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-13 18:37:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-13 18:37:07 +0400 |
commit | cde2f1124498c79808007d40e082dfdfad658729 (patch) | |
tree | 9997cc5d1021770247c68fcfdd62a9917230c6b2 /source/blender/blenlib | |
parent | 74f268c44238aa8ab8a3e4f781cfb00de360ee70 (diff) |
new bmesh tool - limited dissolve.
This is a kind of simplification/cleanup tool which joins adjacent faces and edges based on the angle.
I've written this as an exercise (since I havnt written a bmesh operator before), and because quite a few users were asking for the dissolve operator to be extended, but I think this kind of functionality needs its own operator.
access from specials menu and mesh menu.
notes
* this exposed a bug in angle_v3v3v3(). will merge fix into trunk after release.
* added utility function BM_vert_edge_angle(), to get the angle between 2 connecting edges of a vert.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/math_vector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/math_vector.c b/source/blender/blenlib/intern/math_vector.c index 47deb705def..df9496eca91 100644 --- a/source/blender/blenlib/intern/math_vector.c +++ b/source/blender/blenlib/intern/math_vector.c @@ -118,7 +118,7 @@ float angle_v3v3v3(const float v1[3], const float v2[3], const float v3[3]) { float vec1[3], vec2[3]; - sub_v3_v3v3(vec1, v2, v1); + sub_v3_v3v3(vec1, v1, v2); /* BMESH_TODO!!! merge this line into trunk, cant now, too close to release - campbell */ sub_v3_v3v3(vec2, v2, v3); normalize_v3(vec1); normalize_v3(vec2); |