Commit Graph

302 Commits

Author SHA1 Message Date
Campbell Barton d49eeabae7 Cleanup: warnings 2015-03-16 09:37:00 +11:00
Howard Trickey 2140cb60cb Fix T39184: Multisegment bevel profiles should curve in-plane sometimes.
When the multisegment profile joins two unbeveled edges, all in the same
plane, users desire that rather than the current behavior of linear
interpolation between those edges, the profile should curve.
This changes behavior to do that.  The old behavior can be obtained
by setting the profile parameter to 0.25, if desired.
2015-03-15 18:24:36 -04:00
Antonis Ryakiotakis a7d292394e Fix T43898, correct all uv layers in bevel, not only the active one 2015-03-05 18:50:44 +01:00
Bastien Montagne ced19783fd Fix mismatch (missing 'const' to mactch funcs declarations).
Was breaking windows compile, reported by bdancer over IRC, thanks.

Also, quite some annoying 'unused vars' warnings (debug-only vars).
2015-02-23 13:57:02 +01:00
Campbell Barton 5a372dbd89 Fix error in recent vert/edge-slide commits
`CustomData_bmesh_interp_n` was expecting the 'dest' arg not to have its offset applied.

This was a bit confusing since the source args have it applied,
and in some cases we only have the destination with the offset.
2015-02-23 13:57:06 +11:00
Campbell Barton d580c90469 CustomData: const correctness for interp() 2015-02-23 13:54:33 +11:00
Campbell Barton 7a977df6d4 Refactor array_utils out of BLI_array
BLI_array.h is for resizing array macros, where as array_utils can operate on any arrays.
2015-02-14 08:00:41 +11:00
Howard Trickey dce59530d0 Fix part 1 of T43239, multisegment vertex bevel on 2-edge vertices.
Implemented multisegment rounding of vertices with two edges.
Works both with wire edges and edges that have one or two faces
attached.
2015-02-12 06:55:30 -05:00
Campbell Barton d4934f8f6d cleanup: style/indentation 2015-02-11 18:39:28 +11:00
Campbell Barton 64124ba904 BMesh: tool to ensure all faces are convex
Access from Mesh -> Cleanup
2015-02-02 09:23:44 +11:00
Campbell Barton 9e9cd77b8d Compiler warning: double-promotion 2015-02-01 01:17:21 +11:00
Campbell Barton b09563ca8c Cleanup: fixes for building with recent clang 2015-01-14 05:11:20 +11:00
Campbell Barton 9fadacfd0f cleanup: style 2015-01-08 19:57:50 +11:00
Howard Trickey bf168f0600 Fix T43137: vertex bevel percent mode wasn't implemented. 2015-01-06 09:13:38 -05:00
Campbell Barton 01c04333f5 Fix T43034: beautify-fill leaves zero area tri's 2014-12-27 16:47:42 +11:00
Campbell Barton 445e50fd1e cleanup: use cross_tri_v2 when area isn't needed. 2014-12-26 08:46:48 +11:00
Campbell Barton 0c5eb88451 Quiet warning (harmless) 2014-12-18 02:15:42 +01:00
Campbell Barton 15bde0dbea Docs: comments (hash table & beauty fill) 2014-12-17 09:58:23 +01:00
Campbell Barton a5c3de2e49 Fix T42630: Triangulate returns invalid face-map
Triangulate with beautify caused a bug when there were existing edges
could make the bmesh-operator return an invalid face-map.

Now the beauty is calculated on the 2d-tri's resulting from polyfill,
its simpler and faster.
2014-12-09 13:08:28 +01:00
Campbell Barton 6076bedec0 Cleanup: remove scanfill define for polyfill code
also rename vars which were previously used for scanfill.
2014-12-09 12:19:26 +01:00
Campbell Barton a5cd6a029f Cleanup: style & de-duplicate 2014-12-02 10:30:29 +01:00
Campbell Barton 25c5542fe7 Math Lib: add constant: M_SQRT1_3 1/sqrt(3) 2014-11-22 18:21:52 +01:00
Campbell Barton 46e2d5ee41 Cleanup: typo 2014-11-21 14:16:35 +01:00
Campbell Barton c31f74de6b Cleanup: use BLI_listbase_count_ex to avoid redundant looping 2014-11-16 14:23:37 +01:00
Campbell Barton 7d040d2a08 Cleanup: use BLI_listbase_*** prefix for count,sort,sort_r 2014-11-16 13:57:58 +01:00
Campbell Barton 7d4c89e6da Correct recent refactor (use generic callback) 2014-11-06 11:47:08 +01:00
Campbell Barton d57ce42dfa BMesh: arg reorder 2014-11-03 08:30:54 +01:00
Bastien Montagne 9b8be0bc0c Cleanup/fix from latest coverity report.
Mostly harmless things, though the 'multires' error was a real bug.
2014-11-01 16:36:11 +01:00
Campbell Barton 133f79e449 Cleanup: warnings, typos 2014-10-29 14:15:21 +01:00
Bastien Montagne 8d1d16bf0d Bevel modifier: Add weight support for vertices bevelling.
Nothing to say here, really, just a couple of lines to add to get it working...
2014-10-15 08:57:11 +02:00
Campbell Barton 30dab51c29 Cleanup: use bool and const args 2014-10-09 22:44:03 +02:00
Campbell Barton 77af624524 Quiet warning on 32bit system 2014-10-06 09:51:51 +02:00
Campbell Barton 230c272fe3 Comments: note on bmesh_region_match
also correct buffer type
2014-10-03 08:21:14 +02:00
Tamito Kajiyama 516dbaeb73 Fix for a build error with VS 2013. 2014-09-29 14:53:28 +09:00
Campbell Barton c729ce7e05 BMesh: remove point-in-face test for bisect
instead track inside/outside state while stepping over intersections.
2014-09-28 19:19:58 +10:00
Campbell Barton 8e4fdba19c Cleanup: typo 2014-09-27 20:32:12 +10:00
Sergey Sharybin e6edc1b09d Fix ocmpilation error with strict flags after the recent commit 2014-09-26 20:17:21 +06:00
Campbell Barton 2f4e70702c BMesh: select similar regions
Select operator that takes multiple selected face regions and
selects any number of matching regions (when they have distinguishing features to isolate them).

UI access next.
2014-09-26 23:06:20 +10:00
Campbell Barton 90e1746d89 BMesh: correct flag use
Allowed fill to make duplicate faces
2014-08-21 13:08:13 +10:00
Campbell Barton d42c085516 Fix T41517: BMesh intersect crash 2014-08-21 09:23:07 +10:00
Campbell Barton d93c07d987 Cleanup 2014-08-21 09:23:07 +10:00
Campbell Barton ed08597442 Correct mistake in recently added intersect tool
Sorting verts along an edge wasn't working reliably.
2014-08-20 12:44:11 +10:00
Campbell Barton ea07d93f77 Fix for fix (don't guess enum's sign) 2014-08-19 07:08:15 +10:00
Bastien Montagne 2a514f8e29 Fix building on some compilers (clang on OSX).
Reported and patch by jensverwiebe (jens verwiebe).
2014-08-18 15:39:40 +02:00
Campbell Barton b9ebf44139 BMesh: intersect tool
Modeling tool to cut intersections into geometry (like boolean, without calculating inside/outside).
Faces are split along intersections, leaving new edges selected.

Access from Face menu.
2014-08-18 17:09:30 +10:00
Campbell Barton 7df4fc5eaf Spelling 2014-08-13 09:34:37 +10:00
Campbell Barton eadfddd02a Cleanup: magic numbers 2014-08-12 15:58:53 +10:00
Campbell Barton e1819cc918 Fix T40948: Fill holes fails in certain case 2014-08-08 04:30:24 +10:00
Campbell Barton ce0ff266e9 GHash: generic comparison for int[4] 2014-07-30 07:30:18 +10:00
Campbell Barton 13a8f650df Cleanup 2014-07-21 10:53:07 +10:00