Brecht Van Lommel
3ee4be913b
Fix #31139 : fractal mesh subdivide was only working along normal where previously
...
it would displace in all directions. Now there's an operator option to control this.
2012-05-03 10:14:08 +00:00
Nicholas Bishop
6f0cb140b0
Initialize an input in bmo_hull.
2012-05-02 23:29:52 +00:00
Sergey Sharybin
5d4fd04f05
Fix #31230 : Grid primitive changes size with changing resolution
2012-05-02 09:03:15 +00:00
Campbell Barton
4cfa761951
source code style checker to, (similar to pythons pep8 checker)
...
currently checks for brace placement and some whitespace use.
can be accessed with:
make test_style
or...
source/tools/check_style_c.py source/blender
also style cleanup on bmo_primitives.c
2012-05-01 20:36:39 +00:00
Campbell Barton
933b3166fc
style cleanup: guys - set your editors to tabs!
2012-05-01 17:51:03 +00:00
Campbell Barton
8f3ed0501e
code cleanup: quiet clang warnings, these would likely never but wont hurt to quiet them,
2012-04-30 10:47:32 +00:00
Campbell Barton
5979893711
style cleanup: edits to convex hull.
2012-04-30 10:39:35 +00:00
Nicholas Bishop
70f1279eab
Add convex hull operator (bmesh operator and wm operator.)
...
Image-heavy user documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/Convex_Hull
Thanks to Campbell for providing code review:
http://codereview.appspot.com/6114060
2012-04-29 16:09:40 +00:00
Campbell Barton
04d8ef3c47
wireframe option to crase edges at the hub, much nicer subsurf
2012-04-29 12:33:56 +00:00
Campbell Barton
41a5e731a2
bmesh: new wireframe tool
...
- makes wireframe from faces.
- options similar to inset (even offset, relative scale)
- copies face settings and loops (uvs, vcolors)
- optionally replaces the existing geometry.
2012-04-29 10:44:00 +00:00
Campbell Barton
ef054e165c
style cleanup: format 'for' loop macros the same as for loops, some renaming to BLI_array macros.
2012-04-28 15:14:16 +00:00
Campbell Barton
0daa5b0c47
bmesh: inset tool depth used bad normals for edge verts.
2012-04-26 03:40:10 +00:00
Campbell Barton
03f451f2f1
fix own error with subdivision (broke icosphere), also noticed icosphere vanished at subd-5 which didnt happen before bmesh.
2012-04-23 23:01:03 +00:00
Campbell Barton
8baa5fbde2
- fix for python freeing its own bmesh clearing the global mirror cache.
...
- fix for own mistake (Ctrl+T didnt set beauty peroperty).
- remove bad level includes in bmesh.
2012-04-23 04:24:11 +00:00
Campbell Barton
b51590d55d
code cleanup: bmesh subdivide code - BM_mesh_esubdivideflag() & "esubd" bmesh operator was passing a flag about in a fairly confusing way.
...
since we will eventually have python bmesh operator access better expose this as multiple booleans.
remove remaining editbutflag's
2012-04-23 03:43:02 +00:00
Campbell Barton
792f536b36
code cleanup: better use of BLI_array_* (grow in larger steps where possible), include BMO_iter_new in for loops.
2012-04-23 02:17:57 +00:00
Campbell Barton
16ff7e40e6
code cleanup: change C naming convention (so py and C api match), eg:
...
C: BM_face_calc_area(f), Py: BMFace.calc_area()
2012-04-23 01:19:50 +00:00
Campbell Barton
5c89138684
style cleanup: comments
2012-04-22 11:54:53 +00:00
Campbell Barton
8765dfccf7
style cleanup: correct typos
2012-04-21 14:14:58 +00:00
Campbell Barton
1c54eaecd8
fix [ #31049 ] New Faces (F) always solid shaded
2012-04-21 13:58:29 +00:00
Campbell Barton
b26865ba99
code cleanup: prefer BM_face/edge/vert_select_set() over BM_elem_select_set() when the type is known (saves switch statement check on the type).
...
Add asserts so the correct types are ensured.
2012-04-20 16:55:47 +00:00
Campbell Barton
e387ccdb42
bmesh inset: add depth option (make use of relative and even offset options)
2012-04-19 19:03:15 +00:00
Campbell Barton
b40476455e
code cleanup: remove unused BMesh args.
2012-04-19 14:38:09 +00:00
Campbell Barton
475ecbb0ce
remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the maceros had unused args in both cases).
2012-04-19 13:47:58 +00:00
Campbell Barton
75b869e428
style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER
2012-04-19 11:44:12 +00:00
Campbell Barton
db2edfcfde
bmesh api function: BM_edge_face_tangent()
...
was used by inset but make into an api function since scripts can use this too.
2012-04-19 11:25:05 +00:00
Brecht Van Lommel
2251e05c30
Fix #31009 : edge split did not split non-manifold edges correctly, it should
...
create a separate edge for each face.
2012-04-19 09:38:07 +00:00
Campbell Barton
18a6282e59
improve recent commit to copy loop data on extrude
...
- in some cases the is only a face on the new edge, so check for this as a source to copy from too.
- one of the asserts wasnt correct, if there are no adjacent faces found just return.
2012-04-18 19:05:28 +00:00
Campbell Barton
580f19d949
fix [ #30994 ] Extruding faces gives bad UV's
...
this had strange logic, there was no need to loop over all face loops.
2012-04-18 09:56:19 +00:00
Campbell Barton
1f01d62d15
more replacement for BM_edge_face_count() use.
2012-04-18 06:57:28 +00:00
Campbell Barton
f1ececaabb
code cleanup: replace use of BM_edge_face_count with BM_edge_is_manifold and BM_edge_is_boundary
2012-04-18 06:44:48 +00:00
Campbell Barton
3486223607
code cleanup: remove/comment some unused code.
2012-04-17 05:09:37 +00:00
Campbell Barton
bd613739ae
bmesh todo: remove unused code.
2012-04-16 10:29:59 +00:00
Campbell Barton
52023f9e88
bmesh todos:
...
- curve undo now runs ED_curve_updateAnimPaths() again.
- comment out unneeded index setting.
2012-04-16 08:04:12 +00:00
Campbell Barton
0635f8101c
make scanfill threadsafe (wasnt threadsafe before BMesh merge but before the merge it didn't need to be) - now rendering uses its better if its threadsafe.
2012-04-16 06:48:57 +00:00
Campbell Barton
79693e4543
code cleanup: avoid confusion with incorrectly named argument to BLI_edgefill(), was 'mat_nr', now 'do_quad_tri_speedup'
2012-04-16 05:03:04 +00:00
Francisco De La Cruz
86508076d8
Fix [ #30943 ] Crash when edge mode enabled and use the bmesh vertex slide(shift-V)
...
Also fixed snapping sensitivity. Gave BMOp a more consistent name "vertex_slide".
2012-04-15 18:34:13 +00:00
Campbell Barton
db53faffa3
make ngon_perimeter into a public api function and expose to python.
2012-04-15 10:09:27 +00:00
Campbell Barton
a1e6e75add
fix [ #30936 ] Face Inset gives bad UV's
2012-04-13 10:37:33 +00:00
Campbell Barton
e9358a3806
bmesh api changes:
...
- remove recently added BM_mesh_select_flush_strip(), functions purpose wasn't clear.
- add BM_mesh_elem_hflag_disable_test(), BM_mesh_elem_hflag_enable_test()
to match existing BM_mesh_elem_hflag_enable/disable_all(), these take a hflag to test before editing each element.
This replaces the need for BM_mesh_select_flush_strip().
2012-04-13 04:02:26 +00:00
Campbell Barton
f5bb4635c6
fix [ #30852 ] Wrong Material ID applied for the new faces
2012-04-09 05:17:07 +00:00
Campbell Barton
4fc6ef1cf5
style cleanup: pep8 some C/style
2012-04-08 08:09:37 +00:00
Campbell Barton
c1e475e527
code cleanup:
...
- remove unused vars
- no need to hard code version number for collada.
- cleanup some typos in comments.
- movieclip_calc_length was passing arg which should be unsigned to BLI_stringdec()
2012-04-08 07:34:09 +00:00
Francisco De La Cruz
cbd95d8159
Fix [ #30855 ] Vertex Slide not using the active vertex
...
Now uses the last selected vertex.
Also, snapping thresholds are now dynamic and the tool's operation should be more consistent with multiple edges selected on invocation.
2012-04-07 19:53:39 +00:00
Campbell Barton
99aaf0812c
fix for vertex slide not taking object transformation into account.
...
also make the shortcut 'Shift+V'
2012-04-07 13:42:00 +00:00
Campbell Barton
8fa17c5362
code cleanup: no functional changes
...
- memset(..., -1) is used incorrectly even though it worked: MOD_solidify.c - thanks Halley from IRC for noticing this. use fill_vn_i() instead.
- quiet warnings in editmesh_slide.c
- cleanup comments in bmesh and some other minor comment additions.
2012-04-07 12:37:15 +00:00
Francisco De La Cruz
6482351ed9
Added Vertex Slide: Slides a vertex along a selected and connected edge (Shift+Ctrl+V)
...
-
BMop: "vertslide vert=%e edge=%hfev distance_t=%f"
2012-04-07 03:15:20 +00:00
Campbell Barton
11a4dab32b
bmesh minor change - avoid increasing array sizes one by one and use iterator macros.
2012-04-06 11:50:16 +00:00
Campbell Barton
58064bdfc4
code cleanup: add doxygen headers to bmesh operator files, also add own include so definitions dont get out of sync.
2012-04-06 09:21:19 +00:00
Bastien Montagne
b68dde68b5
Small improvement to bmo icosphere primitive: instead of calling n times the subdivide bmo with one cut, call it once, with the right number of cuts (which is (2^(n-1)) - 1).
2012-04-05 06:47:14 +00:00