9a92cd8008
bmesh minor refactor
...
* add DM_to_bmesh_ex, DM_to_bmesh for converting a derived mesh to a BMesh (rather than a BMEditMesh)
* have a generic variable for allocsize: bm_mesh_allocsize_default, rather than copying the values about.
2012-02-12 17:44:10 +00:00
7c2715a7ad
rename CDDM_To_BMesh to DM_to_editbmesh, since theres no requirement for
...
the input to be a CDDM.
remove conversions to CDDM for edge split and bevel (will give some
speedup).
2012-02-12 15:02:33 +00:00
b6dcdb065d
code refactor, function renaming for bmesh.
...
These changes are to make the bmesh api more consistent and easier to learn, grouping similar functions which is convenient for autocomplete.
This uses similar convention to RNA.
* use face/loop/edge/vert as a prefix for functions.
* use 'elem' as a prefix too for functions that can take any type with a BMHeader.
* changed from camel case to underscore separated (like RNA).
2012-02-12 10:51:45 +00:00
1dc3536268
mode bmesh include cleanup, remove unused file too.
2012-02-11 10:15:11 +00:00
acd568d751
include cleanup
2012-02-11 08:46:56 +00:00
91390b712a
GPL Header Cleanup
2012-02-11 04:16:17 +00:00
c1070b863b
Style Cleanup
2012-02-10 18:09:19 +00:00
051cf6abf8
Style Cleanup:
...
replace 0/1 with TRUE/FALSE define.
2012-02-07 17:42:46 +00:00
41c0f0c733
replace BLI_array_growone() with BLI_array_growitems() when the size of the increase is known ahead of time, will reduce reallocs and give some speedup.
2012-01-23 13:51:44 +00:00
61a5cc28be
disable re-tesselation for modifiers that use bmesh, array/bevel/edge split - were tesselating 2 times and didnt need to.
...
also comment array modifier from flushing selection flags.
2012-01-22 21:12:18 +00:00
b3938cee63
minor warning/fixes
2012-01-20 15:22:20 +00:00
fc401fd343
error in recent commit
2011-12-01 07:41:45 +00:00
f06bbaed92
split BMFlags_To_MEFlags & MEFlags_To_BMFlags into type specific calls, since we always know the types with these functions theres not much point in having generic calls with a type switch.
2011-12-01 01:41:56 +00:00
eb46f6bf0d
More DM func renames, this one includes renames of the function pointer members of the DerivedMesh struct
2011-11-29 13:01:51 +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
61b699bf9b
remove $Id from headers
2011-10-24 23:32:24 +00:00
3996a820ff
fix for error copying normals in CDDM_To_BMesh, was copying short -> float with no conversion.
2011-09-12 05:21:47 +00:00
f47839181e
Fix for a crash:
...
----------------------------------------------
Another fix from howardt in IRC.
2011-06-23 22:33:42 +00:00
73a545b0d5
=bmesh=
...
Removed the DerivedMesh face iterators (they sucked).
This should make subsurf faster. Also sped up multires
a bit (not sure if it's strictly correct, need to look
at it later).
2011-06-14 03:16:08 +00:00
f5bcf9211d
moved more minor changes across from trunk, fixed some incorrect merges and removed unused includes.
2011-05-09 06:53:39 +00:00
5a2a3d7d82
more syncing with trunk, also cleared many warnings with gcc4.6
2011-05-09 04:06:48 +00:00
7d43a48993
=bmesh=
...
Multires interpolation is considerably better
now, though it still has a problem with occasionally
producing little random tangent spikes. Still, it's
far better then it was.
Also fixed a bug in dissolve faces.
2011-03-29 05:48:18 +00:00
c11c196efa
part 1 of merge from trunk at r30358; it compiles, but doesn't link quite yet :)
2010-07-19 04:44:37 +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
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
6b0679a399
mirror fix attempt 2
2009-09-15 19:36:10 +00:00
6a9daed15d
mirror modifier with mirrorob set works properly (I hope) again
2009-09-15 18:51:33 +00:00
86b474a344
made subsurf object mode conversion faster, though still needs a bit more work
2009-09-15 15:32:09 +00:00
b0a1904d33
another optimization pass. biggest change is MDeformGroup->dw is now allocated via a somewhat simplistic, if effective allocator. This needs a little bit more work; I'd really prefer building this into guardedalloc, but the method requires mempools, which currently live in blenlib. and I'm not sure if we can have guardedalloc linking with blenlib? anyway, current allocator code is more of a temporary fix until I figure that out.
2009-09-10 01:46:52 +00:00
d79a976058
gcc compile tweak
2009-09-09 08:25:39 +00:00
e297d7afb0
gcc compile fix
2009-09-09 07:05:04 +00:00
e0a014a45f
finished removedoubles, and inlined a bunch of functions.
2009-09-09 06:28:58 +00:00
971155b373
part one of profiling/optimizing. made cddm not update tesselations itself in cddm_from_mesh. also made BMO_Test/Set/ClearFlag into macros, and tweaked the way normals are calculated.
2009-09-05 06:10:30 +00:00
9a5ffc8c38
brought weight paint back.
2009-08-31 15:57:13 +00:00
0ea787041d
subsurf works now! YES! take *that* subsurf_ccg.cscons/scons.py BF_QUICK=bf_python,bf_blenkernel,bf_blenlib,bf_blenloader,bf_editors_mesh,bf_bmesh,bf_editors_space_view3d,bf_editors_transform,bf_makesdna,bf_makesrna,bf_dna,bf_rn,bf_bmesh,bf_editors_object,editors_uvedit,editors_space_image,editors_screen,editors_space_screen,editors_space_api,bf_windowmanager,bf_wm still an issue with some modifier combinations though, and I think there's some memory corruption going on, need to valgrind it.
2009-08-25 10:21:10 +00:00
8151a51684
Shift-G (select similar) is now bmeshafied for face select mode.
...
The patch was by Wael El Oraiby, who did a great job on it.
Yay for Wael! Commit of patch #19242 .
There's also some CCGSubSurf stuff mixed in with this, though it's
still not working right (fixed tons of bugs, just the main ones
for some reason are still there, despite their original causes
being fixed :-/).
2009-08-22 04:45:19 +00:00
f7cef59b3d
rearranged some code a bit
2009-08-18 20:05:08 +00:00
0b6066c8f1
replaced use of bmesh tesselator with scanfill when leaving edtmode and generating the mface tesselation data. also fixed a normals problem.
2009-07-26 13:12:55 +00:00
62a847d741
uv texture (though not glsl) works now. also fixed some bugs. still some issues left, and for some reason textured objs aren't displaying properly in object mode.
2009-07-24 10:43:58 +00:00
928258936f
mirror modifier is now feature-complete, though not all features can be tested at the moment. also cleaned up some of the memory leaks.
2009-07-17 00:32:19 +00:00
3bade13503
pre-merge commit. the mirror modifier is currently in pieces, to be picked back up after the merge. there should be some removedoubles fixes, along with some other assorted fixes.
2009-07-14 06:13:43 +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