542dfd94a5
Style Cleanup, use TRUE/FALSE defines.
2012-02-07 01:46:47 +00:00
81eedf6ada
use more optimal method of looping over face loops.
2012-02-06 23:48:42 +00:00
c6f07c651e
rename defines to upper case.
2012-02-06 22:57:25 +00:00
288a5b4b17
Style Cleanup: bmesh code style was a bit mixed - follow http://wiki.blender.org/index.php/User:Nazg-gul/CodeStyle
2012-02-06 04:37:27 +00:00
11d5a2d2eb
Code Cleanup: style change only
2012-02-05 15:55:28 +00:00
71edaceab9
avoid a loop over all faces in copy_mesh
2011-12-21 05:35:19 +00:00
8a8cb2c3ef
minor formatting edits
2011-12-21 04:56:04 +00:00
ed29b35a3f
gpl header cleanup, some files didnt have a gpl header.
...
also added inline iterator file (not yet used)
2011-11-28 19:49:05 +00:00
ac4b9ffcf3
2 of the 3 places that check 2 edges share a vertex were incorrect (silly mistake)
...
so make into a function: BM_Edge_Share_Vert()
2011-11-28 00:27:26 +00:00
8d9d3995c0
fix [ #29079 ] New face added with "F" has wrong winding
...
now newly created faces use the best winding order based on surrounding edges.
2011-11-25 01:18:48 +00:00
707fcc42a3
replace macros with math functions
2011-11-16 17:37:20 +00:00
b0a21add8a
replace bmesh specific macros with math functions, also some pedantic formatting edits.
2011-11-07 09:02:10 +00:00
85e0609c54
use char for BMHeader type and flag (saves 2 bytes per edge/loop/vertex/face)
...
also found mouse_mesh_shortest_path was casting edit selecton to the wrong type.
2011-11-01 14:36:23 +00:00
a7bf015f38
style edits
...
- rename var to match trunk shape key code
- reduce scope of some vars
- comment some unused vars
2011-10-29 11:23:37 +00:00
f7243ece07
remove redundant casts
2011-09-12 15:10:59 +00:00
5f75407e22
change TODO -> BMESH_TODO if only on bmesh branch
2011-08-07 12:45:55 +00:00
a141cea6fe
=bmesh= fixed a memory leak
2011-04-16 13:00:41 +00:00
60aa74f9ee
bmesh, less warnings
2011-03-20 14:49:16 +00:00
f01261d040
merge with/from trunk at r35190
2011-02-27 06:19:40 +00:00
a37bcf93ef
wip commit; DO NOT USE. almost done with phase 1 of this restructuring, basically just some things that needed to be done before trunk (and some things that needed to be started, but can be finished much later).
2010-07-14 22:06:10 +00:00
0e165c55bb
did math lib conversion, equivilent to merge with trunk/2.5 at r24464
2009-11-23 14:41:22 +00:00
d4a9660b99
part 1 of vkey rip tool. still needs more work. ugh, doing this tool correctly is a nightmare.
2009-10-07 21:19:58 +00:00
0c65f27c79
part 1 of cleaning up my little array macro library to be a formal API. also removed some extraneous selection calls from loopcut.c.
2009-09-17 23:05:33 +00:00
deebf4f8f0
merge with 2.5/trunk at r23271
2009-09-16 17:43:09 +00:00
bb28b5d1fe
some merge, vpaint and wpaint bugfixes
2009-09-01 16:05:33 +00:00
454eb8793d
Array modifier is now implemented using bmesh
...
(though it's not completely feature-complete yet).
I ported over the remove doubles code from the
old bmesh branch for this, and split it into two
bmops, "Weld Verts" and "Remove Doubles".
Weld verts welds specific verts together, while remove
doubles finds doubles and welds them.
I also reverted the hotkey change I made earlier.
2009-06-23 05:35:49 +00:00
166c270f06
NOTE: do not test. work-in-progress commit with editmesh ripped out and replaced with bmesh. this is not usable by any means. for those who read through this, note the design is still fairly messy in places, and fyi BMTessMesh is the replacement for EditMesh, I need to rename it to BMEditMesh.
2009-05-16 16:18:08 +00:00
52fc6d7829
removed all those nasty enums from the operator api. yay! I'm
...
so happy. so now operators and their slots are referred to by
string names. so much easier to remember!
2009-03-22 23:16:43 +00:00
168847fe79
further code comments. used a somewhat minimilistic style for the function comments, so people won't hate me.
2009-03-14 02:52:16 +00:00
215f0fa27d
the make ngon function's overlap test needed some work, the API function
...
that does that needed to be split in two. this made dissolve faces sometimes
not work.
also added some api functions to recalculate normals for verts, edges and
faces. and added a new flag, BM_NONORMCALC, to prevent this from happening
on individual fgon faces after they are tesselated. and made dissolve faces
happen on fkey in all the selection modes, not just face select.
2009-03-12 03:55:53 +00:00
27861a3b3b
implemented an (edge) loop walker. note I misunderstood
...
how original edge loop worked, and made it so if it starts
at a boundary edge, it walks across the boundary. I'm not
sure if this is bad, most of the time I do that I want it
to do that anyway.
2009-03-11 05:13:36 +00:00
5018318fe0
dissolve faces: errors-out on holes, preserves winding, and doesn't delete original face if no dissolving happened. the conversion from/to editmesh now counts selected elements properly.
2009-03-09 09:52:32 +00:00
ccfe5547e1
compiler fix part 1
...
[[Split portion of a mixed commit.]]
2009-03-08 16:50:11 +00:00
f23b4bc2a1
Got the walker API to work, for safely recursing the mesh.
...
Used it to implement the dissolve faces operation (previous
incarnation was just a debugging hack). The code works by
creating one giant new face per region of faces.
The dissolve verts (xkey->collapse, heh need to rename it)
operator now invokes dissolve faces on the faces around verts.
This is less error-prone then a pure topological/euler based
solution.
2009-03-08 15:02:49 +00:00
662230a14c
merge with 2.5 at 19207, plus some half-finished walker stuff
2009-03-08 08:03:27 +00:00
c1847eac84
tesselator/triangulator improvements, it now works a lot better, though still not perfectly
2009-01-22 07:06:25 +00:00
e43fa0eb82
conversion code now uses triangulator for fgonafication of ngons. also implemented a collapse vert operator (execute it with jkey). note to Briggs: BM_Collapse_Disk wasn't quite finished. . .I got it to mostly work, but it still needs work (and the way I had it handle 2- and 3-valence verts may be wrong). Also it can make 2-edged faces in certain situations. Need to work through the code some more.
2009-01-21 10:11:01 +00:00
4746ada4e3
move back new api code
2009-01-07 15:17:58 +00:00