Bastien Montagne
0af11a1742
Make use/computation of lnors consistant.
...
Issue was, when requesting (building) lnors for a mesh that has
autosmooth disabled, one would expect to simply get vnors as lnors.
Until now, it wasn't the case, which was bad e.g. for normal projections
of loops in recent remap code (projecting along split loop normals
when you would expect projection along vertex normals...).
Also, removed the 'angle' parameter from RNA's `mesh.calc_normals_split`.
This should *always* use mesh settings (both autosmooth and smoothresh),
otherwise once again we'd get inconsistencies in some cases.
Will update fbx and obj addons too.
2015-01-19 15:51:20 +01:00
Campbell Barton
b09563ca8c
Cleanup: fixes for building with recent clang
2015-01-14 05:11:20 +11:00
Campbell Barton
a97c5d1f9f
Fix T42459: Knife fails at small scale
...
Occluding geometry failed when near overlapping (or cutting small objects).
2015-01-14 01:36:03 +11:00
Campbell Barton
bd00770715
Cleanup: consistent arg order in bmesh
2015-01-14 01:36:03 +11:00
Campbell Barton
3debcc8b51
Math Lib: improve area calculation
...
- area_quad_v3 now works correctly with concave quads.
- add area_squared_*** functions, to use when comparing to avoid a sqrt().
2015-01-13 19:10:15 +11:00
Campbell Barton
dcd662c695
BMesh: Tweak behavior for select more/less
...
Stepping over faces gives overall nice results but it stopped wire edges from working.
Now step over wire too.
2015-01-13 02:36:51 +11:00
Campbell Barton
dec523da87
Fix for regression in bmesh connect-pair
...
T42563 fix wasn't right, fortunately this doesn't fail in most cases.
2015-01-10 12:32:14 +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
fd9b25df75
cleanup: create cube, use index lookups
2015-01-04 14:21:16 +11:00
Campbell Barton
4abe548527
cleanup: style
2015-01-02 19:29:00 +11:00
Campbell Barton
aab4f2b762
cleanup: redundant casts & const cast correctness
2015-01-01 23:42:28 +11:00
Bastien Montagne
c79c48cc93
Fix T40930: Add a new option to select faces by smooth/flat shading.
...
Org code by robschia (Roberto Schiavone), first review by campbellbarton (Campbell Barton),
final review and minor changes by mont29 (Bastien Montagne).
Reviewers: cambellbarton, mont29
Subscribers: mont29, campbellbarton
Maniphest Tasks: T40930
Differential Revision: https://developer.blender.org/D638
2014-12-28 19:08:43 +01:00
Campbell Barton
01c04333f5
Fix T43034: beautify-fill leaves zero area tri's
2014-12-27 16:47:42 +11:00
Campbell Barton
2b595579e3
Fix T43013: Flip with bridge aligned loops
2014-12-26 20:22:21 +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
a56e31c89c
Fix triangulating concave quads
...
Resulting triangles could be pointing in opposing directions.
2014-12-17 11:34:16 +01:00
Campbell Barton
b04d2f99f2
Fix T42927: Triangulate-beauty fails on quads
...
Regressions since 2.69.
2014-12-17 10:09:47 +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
3e7e97f127
BMesh: ensure iterator macros assign to valid types
...
note, this is for C++ code which expects a cast, (will be added later)
also add a macro for nop-expressions (EXPR_NOP),
when we never want an expression to be evaluated, but it should still be valid.
2014-12-08 10:54:56 +01:00
Campbell Barton
a5cd6a029f
Cleanup: style & de-duplicate
2014-12-02 10:30:29 +01:00
Campbell Barton
0154096fd5
Cleanup: unused headers
2014-11-28 23:12:12 +01:00
Campbell Barton
915235c87a
Cleanup: unused headers
2014-11-28 22:16:14 +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
591eb27efa
BMesh: check for loop side-of-loop & side-of-edge
2014-11-21 14:16:35 +01:00
Campbell Barton
46e2d5ee41
Cleanup: typo
2014-11-21 14:16:35 +01:00
Bastien Montagne
b7f5ab0cd3
ShapeKeys: Add BKE_keyblock_is_basis to check whether a given keyblock is used a basis by others.
...
Also fix stupid debug-only error in previous commit.
2014-11-17 11:19:54 +01:00
Campbell Barton
902ba7b25c
Cleanup: use SUBD_CORNER_* prefix for Subdiv flags
2014-11-16 15:46:30 +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
1ddfe6676d
BMesh: shrink/fatten faces-normals in face mode
...
nice for solid-modeling, gives better results for partial selections.
2014-11-13 16:41:56 +01:00
Campbell Barton
3ead24d235
Fix T4256: Connect tool hangs
2014-11-10 18:38:46 +01:00
Campbell Barton
a081a4817c
Editmesh: select more/less can now step over adjacent faces
...
This keeps a square shaped selection when using grid topology.
2014-11-06 15:35:46 +01:00
Campbell Barton
7d4c89e6da
Correct recent refactor (use generic callback)
2014-11-06 11:47:08 +01:00
Campbell Barton
67ec0ef277
Editmesh: report a warning when fill fails
...
also prevent assert with zero normal
2014-11-05 14:21:18 +01:00
Campbell Barton
cb5ec7f743
Fix use-after free (own error)
2014-11-04 09:48:41 +01:00
Campbell Barton
5e0e175422
Cleanup: spelling (D831)
2014-11-03 23:28:16 +01:00
Campbell Barton
d57ce42dfa
BMesh: arg reorder
2014-11-03 08:30:54 +01:00
Campbell Barton
b7174c9320
Fix connect-vertices failing for concave ngons
...
Also add:
- generic callback for bmesh elements.
- ability to pass an existing array to a bmesh operator.
2014-11-02 00:09:14 +01:00
Campbell Barton
d658ea1b20
Cleanup: style
2014-11-01 23:32:02 +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
Bastien Montagne
a62b806d70
Fix T42145: EditMesh Bevel tools had no clamping option.
...
Missing feature already present in Bevel modifier, useful and rather simple to add.
2014-10-08 16:42:41 +02:00
Campbell Barton
a8705e99ee
Sculpt: minor speedup for dyntopo
...
Add retake to range-tree to avoid double lookup.
2014-10-07 21:02:08 +02:00
Campbell Barton
5e809c45ed
Fix T4199: Knife holes in concave ngons failed
...
BM_face_point_inside_test assumed the face center was inside the face.
2014-10-07 10:09:19 +02:00