37e73aa368
code cleanup: use BKE naming conventions for functions in BKE_editmesh.h and BKE_editmesh_bvh.h
2013-04-16 05:59:48 +00:00
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
858ff6b696
Fix for [ #34898 ] Typo in error message of mathutils.Vector
...
* Also fixed some more cases of "more then" -> "more than".
2013-04-07 15:09:06 +00:00
6d8e25dfdc
code cleanup: split editmesh_tools.c, into inset, bevel (both modal operators) and moved extrude operators into their own file.
...
also move some selection operators from editmesh_tools.c into editmesh_select.c
2013-04-01 10:18:01 +00:00
dd0e2da784
code cleanup: use booleans and const's for operator vars.
2013-03-22 04:40:45 +00:00
e7c15beaf6
code cleanup: use booleans for mesh and selection code.
2013-03-19 23:17:44 +00:00
0d0291f6e1
code cleanup: incorrect sized array args, remove some redundant code.
2013-03-17 10:26:23 +00:00
aaa8a13c49
code cleanup: use const events for modal and invoke operators.
2013-03-13 09:03:46 +00:00
dfa8540cdf
use bool for rna funcs.
2013-03-07 02:44:55 +00:00
1f3e3b0d68
include cleanup
2012-12-19 04:49:32 +00:00
d5c2a1f8f4
remove context argument from EDBM_update_generic()
2012-12-12 15:22:54 +00:00
44b634bcb1
make EDBM_index_arrays's stay in memory, blender was allocating an array and filling it for verts/edges/faces on every redraw.
...
this may introduce bugs which I didn't catch, but they are very easy to identify in a debug build which has asserts to ensure the arrays are valid before use.
in my own test drawing ~98,304 quads - this gave an overall ~16% drawing speedup.
2012-12-12 06:53:39 +00:00
7c699a217a
define the size of matrix args for both rows/cols.
2012-12-11 14:29:01 +00:00
0b9be70591
typo's and some style cleanup, also added asserts into BLI_vsnprintf and BLI_sprintfN when invalid args are given.
2012-11-28 06:43:04 +00:00
cdc4037f0d
bmesh: BM_verts_in_face was using bmesh operator flag which is no longer ensured to be available,
...
use internal apiflag instead, Thanks to Nicholas Bishop for spotting.
also quiet some warnings.
2012-11-19 00:54:55 +00:00
bf4be941fc
fix for filled rip copying loop customdata (fix in BM_edge_other_loop broke it)
...
also assert when customdata can't be copied because of invalid args.
2012-10-27 01:33:33 +00:00
c9dade4fe0
Big i18n commit: add "reports" from bmesh/readfile/tracking/dynapaint (and a few others), and another bunch of UI messages tweaks/fixes, as well as some BKE_report()<->BKE_reportf()...
2012-10-26 17:32:50 +00:00
75198e98bb
fix for error in filled rip copying customdata (new triangles were flipped across the edges of the empty space they spanned) only noticeable when the customdata on either size of the rip didnt match.
2012-10-15 03:36:22 +00:00
8ebe1e4afe
code cleanup: remove redundant pointer indirection.
2012-10-15 03:27:05 +00:00
b7f4c69ef7
More UI messages and BKE_reportf->BKE_report fixes...
2012-10-14 15:29:09 +00:00
643f331cb5
Rip-fill mesh tool (option for rip operator)
...
Alt+V will fill the area inbetween the ripped faces - a bit like extrude.
faces are flipped to match existing geometry and customdata (uv, vcols etc) is copied from surrounding geometry too.
2012-10-14 04:42:11 +00:00
29ab21ee95
fix for own error, leaving in test code to set the smooth flag.
2012-10-13 10:41:34 +00:00
f81b06cfa5
improve edge rip when the edge has only 2 other connected edges.
...
common case ripping an edge of the default cube, it didn't run the edge size check.
2012-10-13 03:59:06 +00:00
da155c2dcb
style cleanup: spelling
2012-10-13 03:54:27 +00:00
7412e321a3
add support for ripping off a single face from a single vertex when the vertex has 3 surrounding verts & faces.
2012-10-13 01:46:57 +00:00
8b7896814f
code cleanup: reduce change the size of some float vectors that were bigger then they needed to be.
...
update to clang_array_check.py - parse function definitions lazily for some speedup.
2012-10-08 07:08:29 +00:00
4cc29110aa
fix writing past array bounds in imagewraposa().
...
also correct array sizes in othere areas.
2012-10-06 12:04:09 +00:00
edb78d090c
code cleanup:
...
- make view3d project names more consistent.
- remove apply_project_float() its not needed.
- update comments referencing an old function name.
- move doxygen docs into the C file, prefer they are kept here to avoid getting out of sync with code.
2012-09-20 04:56:24 +00:00
a9f10b6bc2
style cleanup
2012-09-08 06:40:03 +00:00
d5bcec80c8
minor fix for previous commit. ripping a vert-edge connected to a face would always choose the face even if the mouse is closer to the edge, now check both edges and faces when ripping from a non wire vertex
2012-09-07 06:46:26 +00:00
cdc9e553c1
minor improvements to rip
...
- rip tool didnt select the best edge to rip for wire verts (no connected faces)
- ripping one vert with 2 edges connected didnt work.
2012-09-07 06:31:54 +00:00
f2074949e7
code cleanup: reduce calling sqrt() when distances are only calculated for comparison use dist_squared_to_line_segment_v2().
2012-08-14 08:44:35 +00:00
69a7e0af02
rename bmesh ops since they are exposed in an api now.
2012-06-30 15:27:13 +00:00
3896ad4cbb
code cleanup: spelling
2012-05-20 21:23:26 +00:00
2d2d36fe3b
code cleanup:
...
- style - multi-line ifs move braces onto new lines.
- iterators - convert some to macros, other split up and move brace.
2012-05-20 19:49:27 +00:00
e2c453b5f9
style cleanup: editors / mesh & object
2012-04-28 15:42:27 +00:00
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
950ed69297
code cleanup:
...
- replace inline face UV center calc.
- use const float[3] for mesh and uv functions.
- remove unused define
2012-04-28 08:29:20 +00:00
47b6b60e5a
code cleanup: no functional change - had both EDBM_editselection_* and BM_editselection_* funcs, replace EDBM_ funcs.
2012-04-24 21:19:18 +00:00
f7a59fd1cf
rip tool again (this in infact an old bug), when selecting an edge to extend the splitting to, dont step over manifold edges. - would result in duplicate edges.
2012-04-23 15:35:07 +00:00
cccd4b72e5
fix memory leak in rip tool (again own fault).
2012-04-23 15:26:06 +00:00
eff325a98c
minor changes to rip internals
...
- check if vertex ripping has no effect.
- no need to flush selection for vertex rip.
2012-04-23 15:18:12 +00:00
cb91c5d7b2
rip was incorrectly giving an error when ripping a vertex from a face fan (own mistake).
2012-04-23 14:57:47 +00:00
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
8765dfccf7
style cleanup: correct typos
2012-04-21 14:14:58 +00:00
96b024333e
fix [ #31047 ] ctrl+mouse select in edit-mode does not select external object
...
fix [#30535 ] Shortest Path Select not working well in vertex mode.
regression from after bmesh merge, Ctrl+Right mouse for selecting shortest path is meant for edge mode only.
2012-04-21 12:14:07 +00:00
f910abadda
fix error in recent rip refactor, also add comment.
2012-04-21 06:42:21 +00:00
15eb3452ec
style cleanup: pep8, also quiet compiler warning.
2012-04-20 18:50:18 +00:00
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
f627745053
aparently yards are not used a lot, suppress their use in button display (input still knows about them) - was reported as a bug.
...
also fix minor rip bug where active selection was lost.
2012-04-20 14:59:24 +00:00