bbce51d116
replace hashes with sets where possible.
2013-08-25 20:03:45 +00:00
1d5eff36f5
BKI_gset and EdgeSet api, use when hash values aren't used (reuses ghash internally without allocating space for the value).
2013-08-25 20:00:19 +00:00
e2bd3a4644
clearing the mempool can now keep more then a single element reserved.
2013-08-25 16:16:38 +00:00
3a9eb9b497
doxygen docs for ghash/edgehash
2013-08-25 12:17:46 +00:00
7c65015ab8
use ints for ghash/edgehash flags, since its allocated theres not much point to try save a few bytes here.
2013-08-24 20:16:14 +00:00
585272fbcf
cloth was using edgehash not quite correctly:
...
- was ordering vertex args unnecessarily.
- was adding the same edges multiple times into the edgehash.
2013-08-24 16:06:18 +00:00
aefe93d909
revert bucket size change (edgehash was this way for years, since r26206, ghash since r57657)
...
having 2 free buckets for each entry is faster but uses more memory.
use the original size, best case 3 entries per bucket.
2013-08-24 15:09:57 +00:00
f2acb10b6b
edge hash: take an arg for the guarded-malloc string (as ghash does)
2013-08-24 13:08:55 +00:00
9c090cecfe
ghash and edgehash api, allow newly defined hashes to take in the size of the hash as an arg (avoids resizing in simple cases when the hash is created and filled immediately).
2013-08-24 13:04:03 +00:00
4dd9353e56
ghash/edgehash flag wasn't being initialized for new hashes. also init vars in same order for ghash/edgehash.
2013-08-21 20:21:42 +00:00
754b4ab3bc
add hash function BLI_ghash_assign, BLI_edgehash_assign
...
avoids remove,insert and only hashes the key once.
2013-08-18 03:41:39 +00:00
ee2d95f850
minor api cleanup for ghash/edgehash
...
- use single inlined lookup function.
- move comments into source.
- pack iterator vars more efficiently.
2013-08-18 01:00:52 +00:00
fbb446dff6
add assert for hashes if an existing element is ever inserted into a ghash/edgehash.
...
the outliner does this intentionally, so add a flag to allow this situation optionally.
2013-08-18 00:36:04 +00:00
418011907c
remove nan copyrights from code added since blender become opensource (copy paste errors), also remove BKE_script.h
2013-07-02 10:14:59 +00:00
1a50be2d94
Make edgehash and ghash use the same limit for expanding buckets, r26206 changed ghash.
...
double checked and r26206 does indeed give a speedup, so change for edgehash too.
2013-06-22 22:30:56 +00:00
1fb980e7df
reduce sign conversion comparisons for smallhash and tweak warnings elsewhere.
2013-06-22 20:20:06 +00:00
0ac5028f2a
use unsigned ints for edgehash
2013-05-10 12:06:40 +00:00
62db610220
use unsigned int's for smallhash, avoids using ABS when converting an
...
int from a key.
2013-05-08 12:54:07 +00:00
319036f2d5
fix [ #35026 ] Curve build modifier
2013-04-22 12:00:37 +00:00
9f8070d047
code cleanup:
...
- define array sizes for functions that take vectors.
- quiet some -Wshadow warnings.
- some copy/paste error in readfile.c made it set the same particle recalc flag twice.
2012-10-20 08:02:18 +00:00
032d83ecc4
style cleanup: defines with braces
2012-05-27 20:13:59 +00:00
2f2b15bbb2
style cleanup: whitespace, bli & makesdna
2012-05-12 15:02:10 +00:00
bc767059cb
Code Cleanup: update to mempool, use flag rather then bool args.
2012-03-01 22:59:18 +00:00
6c53638863
add an assert for inserting an egde with the same vertices and a BMESH_TODO for bevel.
2012-02-29 16:29:09 +00:00
1b4487e813
Fix [ #29728 ] Explode Modifier Causes Crash.
...
The problem was in fact in recent BLI_edgehash changes: a typo in the new macro EDGE_ORD made v0 > v1, instead of v0 < v1. This caused the bug in explode modifier, which (ab)uses that ordering feature a bit…
2011-12-31 15:10:38 +00:00
2e92b14bc6
copy BLI_edgehash changes from bmesh branch, main change is use of mempool.
2011-12-28 10:20:37 +00:00
ad96dacbc5
style edit only - move parenthesis onto second line of function definition (in keeping with most of blenders code)
...
also split some long lines in own code.
2011-12-17 00:52:36 +00:00
e84c0980a3
correct indentation and some whitespace edits (no functional changes)
2011-11-11 13:09:14 +00:00
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
f5ec4cf4e9
fix own mistake [ #27451 ] Flip to Top / Flip to Bottom menuitems on right click on header not working
...
also get rig of more shadowed vars (-Wshadow).
2011-05-23 08:14:29 +00:00
Nathan Letwory
7900b5949f
doxygen: blender/blenlib tagged.
2011-02-27 20:37:56 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +00:00
1e9bf0cfdb
spaces -> tabs, (4 spaces == 1 tab, only for white space preceding text)
2010-03-22 09:30:00 +00:00
081c1205a3
correct fsf address
2010-02-12 13:34:04 +00:00
9b9edad6b6
Patch 17403, small gcc warning fixes.
2008-09-20 12:26:18 +00:00
2c9e8e7593
Fix for bug #11140 : explode modifier could run out of memory quite
...
quickly because it allocated a totvert*totvert size array, now uses
edgehash instead.
2008-05-12 11:48:55 +00:00
Chris Want
5d0a207ecb
Patch from GSR that a) fixes a whole bunch of GPL/BL license
...
blocks that were previously missed; and b) greatly increase my
ohloh stats!
2008-04-16 22:40:48 +00:00
0192536102
- added iterator to edgehash
...
- updated decimator to make edges
2005-08-23 02:29:22 +00:00
4ad5cdf91e
- subsurf getVertCos returned verts in wrong order since
...
shuffling of code... led to fun and crazy results (maybe
less fun for les artiste)
2005-08-23 02:05:45 +00:00
af935e597f
Use new BLI_edgehash_* functions in unwrapper.
2005-08-21 21:39:44 +00:00
dd7bcb94bf
- sillyness... added drawMappedEdges for mesh
...
- revert to drawLooseEdges instead of general drawEdgesFlag
- ditched TFace edge flags, done dynamically now which also
means don't need to recalc surface on flag changes
- added BLI_edgehash, guess what it does
2005-08-21 20:48:45 +00:00