Howard Trickey
0a006cce9c
Fix bevel bugs 34445 and 35109, copying over edge data.
...
The bugs were about not respecting edge smoothness and
not respecting edge crease. This change copies the
edge attributes from a beveled edge to the two outside
edges of the bevel.
2013-07-08 13:02:21 +00:00
Howard Trickey
2e7776b95a
Fix bevel crash bug 35990. Sometimes no face to interpolate from.
2013-07-03 20:52:31 +00:00
Campbell Barton
4848ca09c0
style cleanup
2013-07-02 20:36:52 +00:00
Howard Trickey
994a937a97
Fix Bevel bug #34321 , making bevel keep UVs contiguous when possible.
2013-07-02 13:18:56 +00:00
Campbell Barton
fad1da062d
correct typos in comments.
2013-06-25 22:58:23 +00:00
Campbell Barton
998101763a
correct for own regressions when refactoring select-path, was using heap popmin incorrectly.
2013-06-19 19:59:49 +00:00
Campbell Barton
48fd740096
edit-mesh improvements to select shortest path
...
- Ctrl+RMB only worked for edges & faces
- Menu item 'Select Shortest Path' only worked for vertices.
Now Ctrl+RMB works for vertices and the menu item works for verts/edges/faces (depending on the current selection).
2013-06-04 01:23:51 +00:00
Campbell Barton
790e9d9fa0
fix [ #35311 ] Planar Decimate / Limited Dissolve fails to merge some adjacent faces
...
optionally limit by face flipping, also added support to delimit by material and edge crease.
2013-06-03 05:07:16 +00:00
Campbell Barton
5e347c4f71
code cleanup: typos
2013-05-26 12:02:29 +00:00
Campbell Barton
7222d654b2
code cleanup: typo and stop manpage turning '$' into italic.
2013-05-25 02:21:50 +00:00
Howard Trickey
834c6ca316
Fix bug #35450 , bevel make large spikes sometimes.
...
Needed special case for when beveled edge is
antiparallel to an adjacent edge.
2013-05-24 13:13:05 +00:00
Campbell Barton
1fe7657b4f
code cleanup: avoid unneeded normalizations when joining tris -> quads, also correct assert with edge-collapse-decimate.
2013-04-21 13:10:05 +00:00
Campbell Barton
6da961775f
code cleanup: rename BKE_tessmesh -> BKE_editmesh, rename EditDerivedBMesh.tc -> em. ('tc' is odd name which isn't used elsewhere).
2013-04-13 20:31:52 +00:00
Campbell Barton
e8d532f1dd
style cleanup
2013-03-31 03:28:46 +00:00
Campbell Barton
e1a54214bb
code cleanup:
...
- remove unused defines.
- quiet some shadow warnings.
- bevel, ifdef out some asserts that are too common.
- style
2013-03-25 02:41:30 +00:00
Campbell Barton
7ec47aa864
code cleanup: shadowing
2013-03-16 14:33:32 +00:00
Howard Trickey
604bdb7f45
Fix bevel modifier bug #34611 , limit bevel amount needed.
...
This is a quick fix that perhaps overestimates the point
of first geometry collision, but at least for now it should
allow models that used the old modifier and a too-big
bevel amount to not look awful.
The correct solution to this problem is much more involved
and I'll get to it later.
2013-03-13 14:08:12 +00:00
Campbell Barton
ee3d910f8f
code cleanup: quiet struct gcc warnings, also use more conventional names for bmesh dissolve.
2013-03-12 08:50:02 +00:00
Campbell Barton
347e2b6cb0
code cleanup: make bmesh var names more consistent
2013-03-09 17:12:24 +00:00
Howard Trickey
0a6e8a41b9
Enable new bevel tool code in bevel modifier.
...
Now modifier takes a segments parameter.
Bevel edge weights will multiply the overall amount.
For vertex-only, you can give a vertex group name,
and the weights in that will multiply the overall amount.
2013-02-21 17:29:35 +00:00
Campbell Barton
2005f7c6c0
style cleanup: also some typos
2013-02-11 00:49:00 +00:00
Campbell Barton
e7cead0994
own recent change to triangulate bmesh operator stopped filling in mapping slot 'face_map.out', not used by blender its self but useful for scripts, enable this again.
2013-02-05 11:30:50 +00:00
Campbell Barton
9d713688ba
code cleanup: warnings
2013-02-04 16:20:39 +00:00
Campbell Barton
518bfbb1c9
style cleanup
2013-02-02 04:58:03 +00:00
Howard Trickey
7d3c6b2760
Fix bevel bug #33906 , unwanted distortion with skewed meshes.
...
The code for making a rounded profile edge at a vertex needed
a special case for when that profile is on the third face
(the one not touched by the beveled edge) when only one edge
is beveled and the three faces are not orthogonal.
2013-01-31 12:54:06 +00:00
Campbell Barton
4e7b18876c
style cleanup
2013-01-30 21:17:38 +00:00
Campbell Barton
f02f491ed0
correction to r54188, also don't attempt to triangulate triangles.
2013-01-29 20:49:40 +00:00
Campbell Barton
2b875a947f
skip calculating the normal for each face when triangulating, all callers make sure its valid. also remove some commented code (more then one generation of bmesh old).
2013-01-29 15:05:23 +00:00
Campbell Barton
37489d71c7
Triangulate modifier no longer uses bmesh operator api call, instead add a BM_mesh_triangulate() function. Gives ~2x speedup in my tests on an optimized build.
2013-01-29 10:31:05 +00:00
Howard Trickey
698aeec8b8
Vertex bevel: adjust vertex positions to make a more rounded pattern.
...
Also fixed debug quad drawing code to not join successive quads.
2013-01-21 18:19:34 +00:00
Howard Trickey
7d286d9a80
Bevel vertex: fix rebuild of faces so they are connected when seg > 1.
2013-01-21 13:31:16 +00:00
Campbell Barton
38cee985bb
code cleanup: style & warnings.
2013-01-21 02:30:40 +00:00
Howard Trickey
add25e43ad
Bevel vertex only (shortcut: control-shift-B) initial commit.
2013-01-21 01:52:23 +00:00
Campbell Barton
f414d2980a
code cleanup: remove some paranoid checks which would have crashed anyway earlier on.
...
Also some minor formatting.
2013-01-20 14:50:50 +00:00
Campbell Barton
b27854bd47
use booleans for bmesh api.
2013-01-14 16:42:43 +00:00
Campbell Barton
b0c084c6cc
fix [ #33797 ] decimate modifier bug on uv-coordinates when mesh uses vertex color
...
if vertex colors had no seams - it would interpolate the UV's too, now interpolate per-layer.
2013-01-08 16:39:36 +00:00
Howard Trickey
4d1d50ea8b
Fix bevel crash #33801 , when first edge of a vertex is wire.
2013-01-08 03:30:31 +00:00
Campbell Barton
6747dec926
style cleanup
2013-01-07 03:24:22 +00:00
Howard Trickey
835ebd576c
Fix bevel crash bug #33714 . Had to disable elem tag on new vertices.
2013-01-03 13:37:17 +00:00
Howard Trickey
4e5d5e0d84
Add 'vertex_only' option to bevel tool.
...
Right now, changing segments to > 1 doesn't do anything,
but intend to work on making that cause rounded corners.
2012-12-28 02:45:10 +00:00
Campbell Barton
9090049505
code cleanup
2012-12-23 16:09:26 +00:00
Campbell Barton
2cb39ea9da
use BM_face_create() over BM_face_create_ngon() in bevel and extrude individual faces to get some speedup.
2012-12-19 09:45:56 +00:00
Campbell Barton
54787a8855
fix own error [ #33529 ] Bevel on a certain edgeloop results in segmentation fault
...
relied on edges having a loop, now use overlap apiflag instead.
2012-12-16 14:17:15 +00:00
Campbell Barton
bee7c20a97
move edge split into its own function which can be called by the modifier without having to call a bmesh operator (gives some speedup).
2012-12-12 12:57:27 +00:00
Campbell Barton
c40030a36c
replace BLI_array_declare with BLI_array_staticdeclare() and BLI_array_alloca() for smaller arrays.
2012-12-12 02:48:03 +00:00
Campbell Barton
71730f26d7
replace BLI_array_fixedstack_declare with() new macro BLI_array_alloca() which uses stack memory always and doesn't need to be freed explicitly.
2012-12-11 15:10:19 +00:00
Campbell Barton
e2f0a1e4db
own cleanup commit in bmesh branch - removed last letters from ends of some comments.
2012-12-11 14:24:27 +00:00
Campbell Barton
a3ce9408a2
fix [ #33438 ] Bevel modifier "angle" mode is broken
...
bevel modifier was making zero area faces & edges that made scanfill fail (since it no longer removes doubles when filling ngons)
2012-12-08 07:35:54 +00:00
Howard Trickey
0bca862e9c
Bevel: fix 'causing artifacts' bug 33245.
...
Really was caused by a previous bevel making
a two-edged face, which caused other faces to
be dropped when copying a bmesh.
The quadstrip code needed to be more careful
to avoid creating two-edge faces.
2012-12-07 18:45:52 +00:00
Campbell Barton
576bc2e6e4
bevel - use tri-fan filling in the special case when a bevel edge meets a non bevel edge at a valence 2 vert.
...
this is the topology tri-fan was intended to be used.
2012-12-04 15:28:34 +00:00