4c5502bfd6
code cleanup: function naming for BLI functions.
2012-05-05 00:23:55 +00:00
8765dfccf7
style cleanup: correct typos
2012-04-21 14:14:58 +00:00
d7542be6ac
code cleanup: more minor changes to scanfill
2012-04-18 14:36:56 +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
ca913254aa
fix for eternal loop in scanfill,
...
The cause for this is bmesh faces which have zero area have their normals set to a fake value (Z-Up), this would break scanfill, possible fixes are to calculate the faces normal each time or tag as invalid but its easiest to avoid the eternal loop with an extra test.
2012-04-18 14:06:59 +00:00
6389301eb5
fix for own error in recent scanfill updates, scanfill can hang if run on a polygon with no area.
2012-04-18 05:52:18 +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
67f8e3a3a7
inline function for "Newell's Method" used for normal calc.
2012-04-16 16:49:37 +00:00
e889fa4678
improve scanfill for uneven ngons, previously scanfill would use the most angular corner, but this made non planer ngons rip frequently (often reported problem).
...
now calculate the normal as with ngons.
2012-04-16 16:24:55 +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
fb1e60762f
style cleanup: scanfill, spelling and use NULL rather then 0
2012-04-16 05:23:40 +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
b8a71efeba
style cleanup: follow style guide for/with/if spacing
2012-03-24 07:52:14 +00:00
69e6894b15
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
2012-03-24 06:18:31 +00:00
577bef62eb
Fix #30543 : tessellating ngons with small angles was failing. There was a quite
...
arbitrary limit of pi/24 for picking 3 vertices to use for computing a normal,
now it uses vertices with the maximum angle between them.
2012-03-20 19:32:31 +00:00
dfdfa3d51b
code cleanup: replace macros VECCOPY, VECADD, VECSUB, INPR - with BLI_math funcs.
...
added copy float/double funcs: copy_v3fl_v3db(), copy_v3db_v3fl(). 2d & 4d too.
2012-03-09 06:04:17 +00:00
95670e03a0
style cleanup / comment formatting for bli/bke/bmesh
2012-03-03 20:19:11 +00:00
ed04c21374
code cleanup: use float vector size in function definitions, and const's where the values are unchanged.
2012-02-28 14:05:00 +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
d74c564235
svn merge ^/trunk/blender -r42333:42361
2011-12-02 23:02:21 +00:00
06c3d5bd09
de-duplicate dominant axis calculation, exact same checks were in 6 different places.
...
added function: axis_dominant_v3(...)
2011-12-02 22:14:20 +00:00
faa022563d
svn merge ^/trunk/blender -r42245:42261
2011-11-29 18:18:56 +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
b2c7dd2d5c
Fix for [ #28528 ] Disappearing Faces
...
Bring back some old scanfill code to handle tesselating polys with some zero-length edges. This code used to cause #4544 but I haven't been able to recreate that now, so I'm going to revive the old code and if #4544 does come back, we'll have to fix it some other way I guess (or come up with a better solution for zero-length edges in polys).
2011-11-22 14:04:33 +00:00
707fcc42a3
replace macros with math functions
2011-11-16 17:37:20 +00:00
e84c0980a3
correct indentation and some whitespace edits (no functional changes)
2011-11-11 13:09:14 +00:00
15e6d6cd75
svn merge ^/trunk/blender -r41226:41227 .
2011-10-24 12:43:08 +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
7a103d33eb
fix for assert
2011-09-24 16:52:54 +00:00
b392539e40
optimization for scanfill allocation function.
...
- replace "size= 4*( (size+3)/4 );" with "size = (size + 3 ) & ~3;"
- split new_mem_element into 2 functions, one to reset, another to allocate so allocating isnt checking to reset each time.
2011-09-24 16:38:02 +00:00
3f91c0ab5d
correct edit some comments
2011-09-09 14:51:30 +00:00
fd4575b2e3
svn merge -r39493:39664 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-08-24 02:29:45 +00:00
3a81f23e09
warning cleanup for -Wdouble-promotion
2011-08-19 16:21:29 +00:00
b9377a1746
fix for crash if scanfill fails
2011-05-24 05:59:14 +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
068c627013
remove unused vars
2011-05-13 13:17:30 +00:00
cc2352cdd0
=bmesh=fixed shapekey mem leak
2011-05-12 18:33:10 +00:00
84afe5f3c9
=bmesh= fixed a tesselation bug, and smooth shaded operator in object mode
2011-04-24 08:06:26 +00:00
c2b670030d
=bmesh= brought back fill faces, alt-f
2011-04-23 00:05:13 +00:00
489eaaa46d
=bmesh= build modifier works now, also made scanfill thread-safe
2011-04-16 23:58:49 +00:00
c98148a963
=bmesh= merge from trunk at r36153
2011-04-15 01:19:13 +00:00
53a85a8edf
=bmesh=
...
Made the new "superknife" tool much stabler
then it was, though a few minor quirks remain.
Rather then the shortest-distance-in-graph method
I was using to rebuild the mesh post-knife I
reworked it to build a triangulation instead,
then merge the triangles into the right correct
faces.
2011-04-11 01:38:20 +00:00
Nathan Letwory
7900b5949f
doxygen: blender/blenlib tagged.
2011-02-27 20:37:56 +00:00
f01261d040
merge with/from trunk at r35190
2011-02-27 06:19:40 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +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
5bcee8cd0a
remove misc unused vars and correct theme name for face angles.
2011-01-11 07:40:31 +00:00
b0f87a1746
rename addlisttolist() to BLI_movelisttolist()
...
name was misleading because the list items were removed from the source list.
(no functional changes)
2010-12-21 14:49:34 +00:00