Campbell Barton
ff42afb6c5
Math Lib: rename barycentric_transform -> transform_point_by_tri_v3
...
also add transform_point_by_seg_v3
2014-08-13 14:55:45 +10:00
Campbell Barton
7df4fc5eaf
Spelling
2014-08-13 09:34:37 +10:00
Campbell Barton
b64e36d26d
BLI_listbase: consistent name prefix
2014-07-30 15:01:16 +10:00
Campbell Barton
41c31b8e55
Correction to recent rip-tear
2014-07-24 23:25:01 +10:00
Campbell Barton
1f55044617
Editmesh: Add option to tear boundary vertices when dissolving
2014-07-24 03:29:17 +10:00
Campbell Barton
8489b94e07
Math Lib: rename mul_serie_m3 to mul_m3_series & reorder args
...
Importantly, reversed mul_serie_m3 argument order (so it matches the m4 function)
2014-07-21 18:57:35 +10:00
Campbell Barton
7c7b7302d3
Math Lib: use variable length args for mul_serie_m3,m4 (instead of trailing NULL's)
2014-07-20 14:01:42 +10:00
Campbell Barton
00b29156e0
Defines: replace ELEM3-16 with ELEM(...), that can take varargs
2014-07-20 01:33:40 +10:00
Howard Trickey
70453c578d
Fix T34664: bevel face material can be set in tool and modifier.
...
Now the bevel tool, modifier, and internal operator have a material
slot # parameter that the user can set. If left at default of -1,
behavior is as current -- bevel face material is taken from the
closest original face (this may be ambiguous). If material slot
is >= 0, it gives the material slot index number for the material
to use.
2014-07-17 09:20:22 -04:00
Campbell Barton
d9f39257f4
Math Lib: add compare_len_squared_v3v3 from paint branch
2014-07-14 11:55:38 +10:00
Campbell Barton
78d38a9033
BLI_array: avoid mixing terms count/length
2014-07-11 15:30:42 +10:00
Campbell Barton
f32079d4b9
BLI_stackdefines
...
Bounds check the stack while debugging, also add STACK_PEEK
2014-06-29 05:57:48 +10:00
Campbell Barton
beedb0b274
BMesh: more edits to vertex dissolve, handle mixing wire edges with faces better
2014-06-27 22:06:49 +10:00
Campbell Barton
d6ab81809e
BMesh: tweaks to dissolve, remove wire edges before other calculations
...
also avoid feedback loop when checking topology giving nondeterministic results.
2014-06-27 20:28:36 +10:00
Campbell Barton
e947dd8cd7
BMesh: add BM_vert_is_edge_pair(), faster then checking (BM_vert_edge_count(v) == 2)
2014-06-27 20:28:32 +10:00
Campbell Barton
c3deb16c16
BMesh: add ability not to delete vertex when collapsing
2014-06-27 20:28:02 +10:00
Campbell Barton
2aca720bff
Fix T40813: Dissolve verts with adjacent regions, removes the dividing edge
2014-06-27 05:39:39 +10:00
Campbell Barton
0ea7302349
Fix for dissolve faces iterating over verts while removing
2014-06-26 23:29:45 +10:00
Campbell Barton
c5ccbacdaa
move STACK_* macros into BLI_stackdefines.h
2014-06-25 00:01:33 +10:00
Campbell Barton
3a75381505
Apply fix for T40745 to extrude_face_region too
2014-06-23 00:12:06 +10:00
Campbell Barton
728041019e
Editmesh: extruding end-point verts now maintains edge-direction
...
Resolves T40745, where faces from extruded edges had flipped normals.
2014-06-22 18:41:07 +10:00
Campbell Barton
f2a0062042
Use ARRAY_SIZE to replace (sizeof(a) / sizeof(*a))
2014-06-17 02:47:57 +10:00
Campbell Barton
b54793ef02
Editmesh: remove redundant normal calculation call for subdivide
2014-06-14 17:55:07 +10:00
Campbell Barton
0b0bac846c
Fix T40508: Calculating normals crashes
2014-06-06 11:27:09 +10:00
Campbell Barton
7e78322eef
BMesh Walker: rename BMW_SHELL -> BMW_VERT_SHELL
2014-05-23 20:50:27 +10:00
Bastien Montagne
a217db0d63
Fix T40297: Crash while ripping an edge when autosmooth is activated.
...
Turned out there was still quite a few cases were indices were set dirty,
but elem_index_dirty was not tagged accordingly (mostly for BM_LOOP,
but a few others as well). So probably this crash was not the only one
hidden here.
Hopefully all possible cases were catched this time!
2014-05-21 22:37:50 +02:00
Campbell Barton
b12bf2216f
Correct last commit, check not to split along edges already used
2014-05-13 18:41:04 +10:00
Campbell Barton
dd8a9eee3b
Fix T40162: Vert connect creates extra face cutting across concave NGon.
...
We need to support cutting degenerate ngons, see: T39418
This commit disallows cuts across faces where the same vertices can create better cuts on different faces.
2014-05-13 17:56:26 +10:00
Campbell Barton
46bd759964
Code cleanup: rename BM_face_legal_splits -> BM_face_splits_check_legal
2014-05-13 17:48:25 +10:00
Campbell Barton
bdf477d19a
BMesh: add check to BM_vert_pair_share_face to allow adjacent loops
...
Add BM_vert_pair_share_face_by_angle to avoid selecting concave splits.
2014-05-13 16:49:57 +10:00
Campbell Barton
f14df29777
BMesh: make BM_face_calc_normal_subset apart of the bmesh api
...
also make face normal calculation functions return normal length
2014-05-13 14:58:05 +10:00
Campbell Barton
4ca67869cc
Code cleanup: remove unused includes
...
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-05-01 04:47:51 +10:00
Campbell Barton
d7d2e71a03
Correct some errors in auto-cleanup
2014-04-27 22:02:59 +10:00
Campbell Barton
88a0fe5f1b
Code cleanup: use 'const' for arrays (bmesh)
2014-04-27 00:25:16 +10:00
Campbell Barton
f2c483d108
Fix T39429: Project paint error with UV bleed
2014-04-23 04:33:07 +10:00
Campbell Barton
9d5ed605fe
BMesh Inset: remove hack to store coords in normals
2014-04-22 01:36:59 +10:00
Campbell Barton
a51a0ca772
Math Lib: add shell_v3v3_normalized_to_dist and v2 version
...
bypass angle calculation to avoids (asin, sqrt, cos).
2014-04-19 22:17:10 +10:00
Bastien Montagne
e4c2a3c31c
Various fixes/improvements regarding BMesh's elem_index_dirty and BM_LOOP handling.
...
Most notably, BM_LOOP and BM_FACE index recompute should now be fully decoupled.
2014-04-15 16:20:07 +02:00
Campbell Barton
a15b3c4d11
Code cleanup: use bool
2014-04-11 11:33:29 +10:00
Campbell Barton
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
Campbell Barton
412826a504
Mempool: delay allocating an initial chunk, its not always used
2014-04-08 12:58:56 +10:00
Campbell Barton
af59ee340f
Mempool: remove BLI_MEMPOOL_SYSMALLOC, MEM_* allocs are more efficient now
2014-04-05 12:14:05 +11:00
Campbell Barton
1f58bfb8be
Code cleanup: de-duplicate cotangent weight function & add arg sizes
2014-03-30 11:08:33 +11:00
Campbell Barton
3977b7612f
Fix T39288: Inset regression with extreme offset
2014-03-28 21:38:12 +11:00
Campbell Barton
2a25676168
Fix for inset bug (edge rail had feedback loop with direction)
...
also disable edge-rail by default.
2014-03-28 21:38:12 +11:00
Campbell Barton
5256a5d66c
BMesh: let vert-connect make degenerate faces when only 2 verts selected
2014-03-27 12:52:34 +11:00
Campbell Barton
ca6d76a915
Code cleanup: double/float
2014-03-19 07:19:43 +11:00
Campbell Barton
3d031d1f3a
BMesh: minor changes for BM_face_split use
2014-03-13 18:41:45 +11:00
Campbell Barton
cc7cfd6617
Mesh Tool: removes degenerate edges, faces and face ears.
2014-02-17 11:41:19 +11:00
Campbell Barton
96d5e05e48
Mesh Inset: following existing edges is now optional
2014-02-15 13:51:54 +11:00