808de65d91
EdgeHash: ensure function, avoids multiple lookups
2015-04-07 10:53:20 +10:00
15bde0dbea
Docs: comments (hash table & beauty fill)
2014-12-17 09:58:23 +01:00
83cbcefac8
Add edgehash remove, clear functions, Heap clear
...
Edgehash was missing removal functions (remove, popkey, clear),
since it wasn't needed so far, but is based on same code as ghash which has them.
also add heap clear() method so we can reuse heaps.
(needed for upcoming fix).
2014-12-09 00:32:20 +01:00
6be4b39526
GHash: add flag get/set for gset
2014-08-12 13:29:40 +10:00
8554fa2fad
GHash, EdgeHash: add debugging function to measure the hash quality
...
Can use to check on improvements to hash functions.
2014-07-14 23:59:47 +10:00
365ff66987
GSet, GHash: Add BLI_gset_add, since its common to add members to a set
...
also rename BLI_edgeset_reinsert -> BLI_edgeset_add, in this case its the same.
2014-06-14 00:47:12 +10:00
9bff19fbfd
GHash, Edgehash: add lookup_default() funcs.
...
Returns a fallback argument when the key isn't found.
2014-04-22 01:36:59 +10:00
5580afb5df
GHash/Edgehash: make simple iterator checking functions inline.
...
also remove NULL check, only a few areas made use of this.
2014-04-08 15:50:38 +10:00
2097e621ed
Code cleanup: use r_ prefix for return args
2014-03-16 03:26:23 +11:00
1ea9f88ff9
warning cleanup: correct some odd returns and quiet strict flag warnings on some systems.
2013-09-02 17:59:04 +00:00
d59b4752e4
add hash iterator functions to access the pointer to the value.
2013-09-02 02:58:53 +00:00
75a2b5ee35
add attributes to ghash and edgehash functions.
2013-09-01 22:47:44 +00:00
3b414b9859
minor changes to edgehassh/ghash
...
- no need to zero vars when freeing ghash
- de duplicate ghash remove code.
- edgehash clear now works more like ghash.
2013-08-25 21:02:31 +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
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
0b88b4fad7
when the size of an edgehash is known or can be guessed,
...
pass in the argument to reserve the size.
2013-08-24 13:47: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
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
319036f2d5
fix [ #35026 ] Curve build modifier
2013-04-22 12:00:37 +00:00
9892736206
code cleanup: header cleanup and remove some duplicate defines.
2012-05-12 20:39:39 +00:00
2b7ca2304a
unify include guard defines, __$FILENAME__
...
without the underscores these clogged up the namespace for autocompleation which was annoying.
2012-02-17 18:59:41 +00:00
2e92b14bc6
copy BLI_edgehash changes from bmesh branch, main change is use of mempool.
2011-12-28 10:20:37 +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
e417e011d5
Code cleanup: file operations merged into single header, some function names
...
made less cryptic and changed to indicate if they work on files or directories.
2011-10-22 15:35:49 +00:00
Nathan Letwory
b97ad119b9
doxygen: add blenlib under core as module.
2011-02-18 13:58:08 +00:00
081c1205a3
correct fsf address
2010-02-12 13:34:04 +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
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