65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
BF-admins agree to remove header information that isn't useful,
to reduce noise.
- BEGIN/END license blocks
Developers should add non license comments as separate comment blocks.
No need for separator text.
- Contributors
This is often invalid, outdated or misleading
especially when splitting files.
It's more useful to git-blame to find out who has developed the code.
See P901 for script to perform these edits.
2019-02-02 01:36:28 +11:00
4226ee0b71
Cleanup: comment line length (blenlib)
...
Prevents clang-format wrapping text before comments.
2019-01-15 23:30:31 +11:00
af36dd4664
Cleanup: trailing newlines
2018-06-29 08:02:49 +02:00
ae8327dbf3
Mask: add option to detect self intersections
2014-02-13 19:12:28 +11:00
c85e66e7fe
Scanfill: add user-flags for edges and verts, useful elsewhere.
2014-02-13 16:46:51 +11:00
6213d88c85
Scanfill: avoid converting int<>intptr_t for displist indices
2014-02-06 01:07:18 +11:00
d598dcd461
Code cleanup: remove scdata from ScanFillContext
2014-02-05 05:39:28 +11:00
6c17d2141b
Scanfill: optimize filling curves, text, masks - skip calculating holes
...
Support for tagging polygon numbers when adding scanfill data,
saves having to calculate connectivity afterwards (which can take approx half overall scanfill time for complex curves).
2014-02-05 05:27:01 +11:00
76543574bc
Code cleanup: declarations for removed functions
2014-02-04 07:20:19 +11:00
8b1731e13d
Scanfill: skip checks for loose edges when they can't occur
...
Only editmesh needs this, text, curves, masks - can all skip this check
2014-02-04 02:57:27 +11:00
e220d3228f
add MEM_SIZE_OPTIMAL to avoid memory fragmentation & waste lost to slop-space.
2013-10-10 18:18:13 +00:00
098cf90956
use strict flags for scanfill, also replace shorts with unsigned shorts and ints/bools in some cases.
2013-09-01 03:37:45 +00:00
27df6a3b54
scanfill curves, ngons, masks had their own memarena code and would allocate a new one for every fill.
...
now use BLI_memarena and support passing the arena into the fill function, so the arena is re-used, when scanfill is called in a loop.
2013-08-28 02:07:54 +00:00
a050ddf279
remove unused callback
2013-06-26 03:42:45 +00:00
ece766ee7e
code cleanup: unused defines, remove unused scanfill success value from BLI_scanfill_begin().
2013-04-10 23:52:07 +00:00
25fe5c20aa
code cleanup: rename ScanFillVert.h --> edge_tot, SF_VERT_UNKNOWN --> SF_VERT_AVAILABLE
2013-02-21 17:15:55 +00:00
6747dec926
style cleanup
2013-01-07 03:24:22 +00:00
f0c1bc830c
add option to BLI_scanfill_calc() - BLI_SCANFILL_CALC_HOLES, gives some speedup for BMesh ngons which never have holes and ensures predictable triangle count (totvert - 2), which is needed for pre-calculating array size.
2012-12-27 06:39:27 +00:00
f9e339ef00
fix/workaround [ #33281 ] script goes into not responding
...
scanfill remove-doubles pass assumes ordered edges (as with curves), otherwise it can hang.
workaround this problem by skipping removing-doubles for mesh ngons, since this isnt such a common case as it is with curves and we can just not support it.
2012-11-26 23:18:04 +00:00
bc8f602601
style cleanup
2012-10-20 18:46:57 +00:00
2560725807
- add a temp var for edge scanfill (fits in 4 bytes alignment - won't increase mem usage)
...
- make keyindex an unsigned int, since its used to store vertex indices
- use BLI_in_rcti_v for IN_2D_VERT_SCROLL and IN_2D_HORIZ_SCROLL
2012-07-12 08:34:59 +00:00
a5127dba57
vector versions of BLI_in_rctf / BLI_in_rcti, (BLI_in_rctf_v, BLI_in_rcti_v)
...
use where possible.
2012-07-11 18:17:48 +00:00
9892736206
code cleanup: header cleanup and remove some duplicate defines.
2012-05-12 20:39:39 +00:00
4c5502bfd6
code cleanup: function naming for BLI functions.
2012-05-05 00:23:55 +00:00
abcaec0edc
code cleanup: replace magic numbers in scanfill with defines, also use some vector functions where possible
2012-04-18 14:30:57 +00:00
195d6c1b1a
minor speedup for scanfill, dont calculate the normal if its already known - use for editmode ngon filling.
2012-04-16 18:24:49 +00:00
0635f8101c
make scanfill threadsafe (wasnt threadsafe before BMesh merge but before the merge it didn't need to be) - now rendering uses its better if its threadsafe.
2012-04-16 06:48:57 +00:00
79693e4543
code cleanup: avoid confusion with incorrectly named argument to BLI_edgefill(), was 'mat_nr', now 'do_quad_tri_speedup'
2012-04-16 05:03:04 +00:00
4f7bdc59d3
style cleanup: spelling.
...
also remove large, duplicate comments from sunsky.h
2012-03-09 00:41:09 +00:00
95670e03a0
style cleanup / comment formatting for bli/bke/bmesh
2012-03-03 20:19:11 +00:00
7bbf4b7831
style cleanup
...
- spelling - turns out we had tessellation spelt wrong all over.
- use \directive for doxy (not @directive)
- remove BLI_sparsemap.h - was from bmesh merge IIRC but entire file commented and not used.
2012-03-02 16:05:54 +00:00
1cad189e32
fix harmless but annoying memory leak prints, "newmem", now free all scanfill memory on exit.
2012-02-19 22:36:24 +00:00
a368e6771a
- remove some unused editmesh functions.
...
- copy & rename EditMesh stricts for use with scanfill (remove unused members)
2012-02-19 22:17:30 +00:00
48006292d8
svn merge ^/trunk/blender -r44189:44204
2012-02-17 20:56:25 +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
06ea86c0a8
Allow scanfill caller to specify boundary edges and use to fix knifetool extra-face bug
2011-11-29 11:49:53 +00:00
15e6d6cd75
svn merge ^/trunk/blender -r41226:41227 .
2011-10-24 12:43:08 +00:00
ad1d3dd30f
svn merge ^/trunk/blender -r41175:41200 --- will need to apply fix after
2011-10-24 07:56:42 +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
16710fb3c2
svn merge -r36651:36672 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-05-13 16:55:07 +00:00
62cd927f57
made BLI_edgefill returns the list length since some callers count directly after, also remove 2 unused flags from ScFillVert struct.
2011-05-13 16:04:20 +00:00
489eaaa46d
=bmesh= build modifier works now, also made scanfill thread-safe
2011-04-16 23:58:49 +00:00
Nathan Letwory
b97ad119b9
doxygen: add blenlib under core as module.
2011-02-18 13:58:08 +00:00
8b7482892b
made most variables which are only used in a single file and not defined in header static for blenlib, blenkernel and editors.
2011-02-14 17:55:27 +00:00
25bbf99a79
replace SIDE_OF_LINE macro with line_point_side_v2() inline function.
...
made a number of files build without unused warnings.
2010-10-15 05:18:45 +00:00
081c1205a3
correct fsf address
2010-02-12 13:34:04 +00:00
ebb6628a01
2.5 BLI_blenlib cleanup
...
DONE:
* moved almost all declarations from BLI_blenlib.h into their own proper header files.
* BLI_blenlib.h still includes all the declarations for convenience and to avoid changes in existing code
* split util.c into several files, where it wasn't done already
* DynamicList -> dynamiclist,
* ListBase -> listbase,
* String utility functions -> string.c
* removed a few unused macros and functions, if they're needed back, they're still in svn ;)
TODO:
* btempdir global
* further cleanup in the code of the different modules (especially util.c)
2008-12-20 10:02:00 +00:00