Campbell Barton
62faffc800
Cleanup: style
2015-03-11 13:15:52 +11:00
Campbell Barton
40ef25d000
Fix T43891: Skin modifier inverts some faces
2015-03-09 20:26:09 +11:00
Campbell Barton
bd00770715
Cleanup: consistent arg order in bmesh
2015-01-14 01:36:03 +11:00
Campbell Barton
915235c87a
Cleanup: unused headers
2014-11-28 22:16:14 +01:00
Campbell Barton
08fd38cf52
BLI_utildefines: add UNUSED_VARS() macro
2014-11-24 12:03:25 +01:00
Campbell Barton
902ba7b25c
Cleanup: use SUBD_CORNER_* prefix for Subdiv flags
2014-11-16 15:46:30 +01:00
Campbell Barton
fe42ceb281
Cleanup: unused
2014-09-26 10:34:20 +10:00
Brecht Van Lommel
a3bb1dca25
Fix the skin modifier crashing when building without Bullet.
2014-09-26 00:04:10 +02:00
Campbell Barton
dcc361708c
BLI_stack: use strict flags
...
also use size_t, rename BLI_stack_empty
2014-06-28 23:17:11 +10:00
Campbell Barton
833c03791f
Use fill function for setting origindex
2014-06-25 19:29:06 +10:00
Campbell Barton
92733179ae
Speedup for skin modifier, avoid calculating normals many times
2014-06-25 19:02:49 +10:00
Campbell Barton
23d7fa11c9
Skin Modifier: use BLI_bitmap to tag edges
2014-06-14 18:24:41 +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
b6e967be63
Code cleanup: const args and arrays
2014-04-27 08:56:54 +10:00
Campbell Barton
617557b08e
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
2014-04-01 15:22:28 +11:00
Campbell Barton
27e86ed832
Code cleanup: use bools
2014-03-20 22:56:28 +11:00
Campbell Barton
ca2b4323a8
Fix T38003: Skin modifier crash with long edges
2014-02-25 23:03:26 +11:00
Campbell Barton
c625658a92
Fix T38567: Branch smoothing on skin modifier broken
...
own regression when changing delete commands
2014-02-19 16:43:13 +11:00
Brecht Van Lommel
52bae9691b
Fix T38521: skin modifier crash with zero radius vertices.
2014-02-07 13:41:42 +01:00
Campbell Barton
a5c35fb27f
Code cleanup: use booleans where appropriate
2014-01-28 04:00:04 +11:00
Bastien Montagne
c37e8ecc50
Cleanup: int/short to bool in BKE_cdderivedmesh.h functions (and TRUE/FALSE to true/false in code using them).
2014-01-23 14:52:46 +01:00
Campbell Barton
7df8452d1a
BMesh: add bmesh delete functions that dont depend on operator flags
2014-01-17 14:55:06 +11:00
Campbell Barton
158b4e61a0
Mesh Modifiers: refactor copying using a generic function
2013-12-22 04:37:26 +11:00
Campbell Barton
e23f77b935
Code Cleanup: move mesh mapping functions into their own file/header
2013-12-12 16:28:52 +11:00
Campbell Barton
9470754fd3
bmesh api cleanup, face creation args now accept an example face (as with vertex and edge),
...
also replace BM_face_create_quad_tri_v with BM_face_create_verts
2013-08-21 07:51:47 +00:00
Campbell Barton
8937a8b839
use BM_CREATE_NOP arg rather then zero, with pointer and bool args in either side in some cases it gets a bit confusing.
...
also correct edge-rotate where bool->flag conversion worked by accident.
2013-08-21 05:39:46 +00:00
Campbell Barton
57f8a252d6
fix own regression [ #36443 ] Vertex to UV index doesn't match with 2.68a
...
add BM_face_create_verts wrapper for BM_face_create which creates its own edge array.
2013-08-21 05:11:11 +00:00
Campbell Barton
00b39c4e5b
code cleanup: more confusion with 0/NULL/false
2013-08-07 03:55:21 +00:00
Campbell Barton
78d69a1e15
code cleanup: replace strcpy with BLI_strncpy for fixed size strings, and correct some harmless but incorrect sizeof() use
2013-08-04 18:12:49 +00:00
Campbell Barton
e03b1668e0
code cleanup: remove unused functions
...
- IsectLLPt2Df
- isect_point_quad_uv_v2
- isect_point_face_uv_v2
These are obsoleted by resolve_tri_uv, resolve_quad_uv
also add attributes for unused function results for some math functions.
2013-08-01 17:15:11 +00:00
Campbell Barton
7c58ec9337
use math functions for copying matrix/vector types, also cast const pointers for freeing (clang error's out otherwise)
2013-07-26 10:43:23 +00:00
Campbell Barton
3c4c2478b6
fix for own regression, face index ranges still need checking in some places.
2013-07-14 23:41:33 +00:00
Campbell Barton
09e11ad6ef
modifier stack: lazy initialize normals
...
many modifiers were calculating normals, when those normals were ignored by the next modifier.
now flag normals as dirty and recalculate for modifiers that set use `dependsOnNormals()` callback.
Quick test on mesh with 12 modifiers (mostly build type), calculated normals 6 times, now it only runs once - so this will give some speedup too.
2013-05-30 17:36:43 +00:00
Brecht Van Lommel
4a4f091155
Fix #35174 : dynamic paint displacement missing in render.
...
A previous bugfix disabled the dynamic paint modifier for orco texture
coordinate evaluation of the modifier stack. However the MOD_APPLY_USECACHE
flag is not a good way to check if the modifier is evaluated for orcos.
Instead I've added a MOD_APPLY_ORCO flag. Also removed a bunch of
applyModifierEM callbacks, none of them served a purpose except for the
subsurf modifier.
2013-05-02 14:42:05 +00:00
Campbell Barton
3dababa7ec
code cleanup: name mesh functions more consistently, also use bools for mesh args.
2013-03-17 19:55:10 +00:00
Campbell Barton
1d5b7bc1f7
fix for typo in skin modifier that resulted in incorrect vertex weights.
2013-03-08 04:31:21 +00:00
Campbell Barton
5ddc7d64a8
optimize bmesh operations that use triangle BMFace's (dyn-topo and mesh conversion).
2013-01-16 21:09:54 +00:00
Campbell Barton
07ccd3ee3f
fix [ #33029 ] Applying modifier leaks memory
...
Thanks for Sergey for finding the bug & patching, This fix works a bit differently.
Theres no need to allocate the customdata in the first place - since its written into. So add a flag for vert/edge/face/loop creation functions so they can skip customdata creation.
2012-11-29 16:26:39 +00:00
Campbell Barton
3d64381e4d
use more rigid type checking for bmesh slot subtypes.
2012-11-26 03:16:29 +00:00
Campbell Barton
ebaf1306b8
bmesh operator api:
...
avoid per vert/edge/face string lookups in BMO_slot_map_* functions --- used in array modifier, subdivide, remove doubles and other tools.
2012-11-20 13:29:27 +00:00
Campbell Barton
dbdc76c9d0
code cleanup: make bmesh operator names more consistant since python has access to these as input arguments and return values.
...
all output values currently have ".out" suffix, this may go in the future, but for now it makes it clear in C code what are inputs and outputs.
2012-11-20 05:50:19 +00:00
Campbell Barton
48639af5f8
use input and output slots for bmesh operators, needed for the python api to get return values.
2012-11-19 14:58:31 +00:00
Campbell Barton
317dff520c
fix for skin modifier calling rotate_normalized_v3_v3v3fl with a non unit length axis.
2012-11-18 11:48:21 +00:00
Campbell Barton
6cdb555e6e
bmesh refactor - rename some of the BM_****_share_****_count() functions to BM_***_share_check()
...
some of these were only returning a boolean, others returned a count even though only a boolean was needed.
split some of the functions in two as well where check/count are both needed.
2012-11-09 14:52:05 +00:00
Campbell Barton
2bb174cfa4
style cleanup: indentation
2012-11-09 09:33:28 +00:00
Campbell Barton
5549904171
style cleanup
2012-10-29 02:11:40 +00:00
Campbell Barton
e5a31eff37
code cleanup: use squared length for comparisons and is_zero_v# rather then checking length == 0.
2012-10-25 23:04:33 +00:00
Campbell Barton
2de2acc681
add CDDM_from_bmesh(), avoids using BMEditMesh in modifiers.
2012-10-24 07:24:11 +00:00
Campbell Barton
f70d2c65d8
rename api functions...
...
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-23 13:28:22 +00:00
Campbell Barton
248b2fc6d6
bmesh-decimator update
...
- update face normals when triangulating.
- avoid divide by zero when interpolating customdata on a zero length edge.
- replace zero float comparisons with fabsf() < FLT_EPSILON to avoid numeric error.
also renamed BLI_heap_empty() --> BLI_heap_is_empty() so its obviously readonly function.
2012-10-21 15:20:53 +00:00