cf6994b910
code cleanup: spelling,
...
also initialize bmesh-bevel settings struct to zero to avoid possible uninitialized memory later.
2012-11-12 07:33:01 +00:00
0bfc92ff8e
BM_iter_as_arrayN() can now take an optional existing array argument, useful to avoid many small malloc's by passing a fixes size stack variable instead.
...
Will give some speedup to edge-split modifier and bevel.
2012-11-12 05:53:43 +00:00
428e5b7a99
bmesh bevel todo: don't loop through all faces to find faces connected to a vertex.
2012-11-12 05:29:54 +00:00
97b7154142
replace BM_edge_face_count with BM_edge_is_manifold/BM_edge_is_wire/BM_edge_is_boundary
2012-11-12 04:50:45 +00:00
744378483c
style cleanup
2012-11-12 03:41:25 +00:00
d22c5d4341
update to python api Gotcha docs to reflect changes to the api. also add a section about modifying linked library data.
2012-11-12 03:23:47 +00:00
b747759698
Bevel: several bug fixes.
2012-11-12 02:52:24 +00:00
89845f280f
fix [ #33142 ] Ctrl LMB higher selection mode in edit mode sometimes selects extra elements
2012-11-11 23:33:59 +00:00
b67a297d33
Bevel: use library plane/line intersection instead of custom one.
...
Custom one had a bug, not worth tracking down.
2012-11-09 16:00:30 +00:00
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
2bb174cfa4
style cleanup: indentation
2012-11-09 09:33:28 +00:00
eff734203f
add fallbacks for BM_vert_calc_shell_factor() and BM_vert_calc_mean_tagged_edge_length() to avoid divide by zero when a vertex has no connected geometry.
...
also style cleanup.
2012-11-09 08:28:14 +00:00
11a5c909f8
code cleanup: move shrinkwrap's benchmark macro into PIL_time.h & some minor style edits.
2012-11-09 04:01:19 +00:00
610d746c12
code cleanup: double promotion warnings with new bevel code & wrong use of NULL in cycles.
2012-11-09 03:08:02 +00:00
365935bfdd
style cleanup
2012-11-08 16:00:18 +00:00
da4441f7c5
Merge gsoc Bevel (with rounding) into trunk.
2012-11-08 15:12:21 +00:00
ae06e2cf9b
fix [ #33000 ] bmesh.ops.create_* either crash blender or do nothing
2012-11-08 10:32:11 +00:00
09cce17d84
decimator - merge flags when collapsing edges / verts, so seams and edges draw flags are kept.
2012-11-08 07:06:08 +00:00
617a73c573
code cleanup: unused defines & some formatting.
2012-11-08 06:46:10 +00:00
c0fb605a04
fix [ #26472 ] Decimate overlaps polygons
2012-11-07 22:39:47 +00:00
620a78c106
decimate - degenerate edges are now added back into the heap (with an dummy cost), so when surrounding geometry may be modified and the previously degenerate edge re-evaluated after.
...
The C++ LOD decimator did this too.
2012-11-07 22:28:50 +00:00
f727448e10
fix [ #33106 ] Decimate modifier/collapse give bad result
...
FLT_EPSILON was too small to use when checking if the edge collapse result is an error.
add invert_m3_m3_ex(), invert_m3_ex() functiosn which take an epsilon to check the determinant, saves calculating it twice per edge collapse.
2012-11-07 09:28:59 +00:00
efc44d0c4d
decimator - interpolate vertex normals rather then re-calculating them. faster and means degenerate faces wont explode.
2012-11-07 07:16:28 +00:00
be367890f7
decimator - no need to check abs() on normal length.
2012-11-07 06:28:46 +00:00
a9fb70754f
avoid using function calls in macros that result in multiple function calls.
2012-11-06 00:18:01 +00:00
964f29797b
avoid using BLI_array for remove double helper function - bmesh_find_doubles_common(), was growing and array one at a time (with re-allocs), when the size is known.
2012-11-05 14:39:49 +00:00
9b948717b0
code cleanup: float <> double conversion.
2012-11-03 18:23:30 +00:00
a18ead1521
style cleanup
2012-11-03 18:14:14 +00:00
ff014a3077
code cleanup: cmake - add missing headers, remove directories from source listing.
...
also remove logImageLib.c - empty file.
2012-11-03 15:49:38 +00:00
f213ae0b19
style cleanup
2012-11-01 09:54:00 +00:00
bd574fe2a2
fix for own error - vertex custom-data flag wasnt working with the decimator
2012-11-01 06:38:25 +00:00
12ed0c64bc
make use customdata typeoffset more, add an assert to ensure its to date.
2012-10-31 09:50:24 +00:00
a1856a38f6
minor improvement to vector api use, replace add, multiply by 0.5 with mid_v3_v3v3
2012-10-30 14:22:49 +00:00
e09a1bc7cf
minor changes to select similar,
...
- replace ngon_fake_area() with generic call to BM_face_calc_area().
- add defvert_find_shared() utility function.
2012-10-30 11:40:36 +00:00
6341bc2cd0
Fix build for recent bmo commit (gcc wants a return value in any case! ;) ).
2012-10-30 09:29:01 +00:00
27f4609ba6
bad naming, the bmesh operator only tags, not selects.
2012-10-30 08:02:32 +00:00
199e597922
code cleanup: move select-similar bmesh operators into their own file since there are 3 operators here that share
...
utility functions with eachother but have nothing in common with other operators in bmo_utils.c
2012-10-30 07:59:25 +00:00
330c0178ce
add the option to select Equal/Greater/Less when selecting similar.
...
Recently addons were submitted for review and this was the only advantage they had over blenders existing internal
select-similar tool.
2012-10-30 07:29:17 +00:00
b5e8e8da6f
add option to select face by matching number of sides.
2012-10-30 06:43:30 +00:00
3d7104c37a
correct assertion
2012-10-30 06:25:23 +00:00
eb69d1c1ae
style cleanup: also quiet harmless compiler warning.
2012-10-29 15:43:54 +00:00
74c60dc5bf
fix [ #32998 ] Decimate modifier - Planar
...
error in recent decimator upgrade, missing NULL check.
2012-10-29 05:31:40 +00:00
656b884387
fix for extruding edges giving incorrect (swapped) loop data for new faces.
2012-10-28 16:17:20 +00:00
0d5a6dccf7
code cleanup: minor changes before committing functional changes.
2012-10-28 15:37:29 +00:00
0c6a0b293f
style cleanup
2012-10-28 15:23:16 +00:00
65bc9ee8d0
revert last commit, it broke regular face extrude. need to look into it further.
2012-10-27 15:34:54 +00:00
71a0fb5dde
fix for extruding single edges from faces giving flipped loop data - UV's/VCols
2012-10-27 15:24:19 +00:00
ec67334e25
A few more BMesh errors messages translated, and "automated" translation for modifers too!
2012-10-27 11:12:09 +00:00
bf4be941fc
fix for filled rip copying loop customdata (fix in BM_edge_other_loop broke it)
...
also assert when customdata can't be copied because of invalid args.
2012-10-27 01:33:33 +00:00
c9dade4fe0
Big i18n commit: add "reports" from bmesh/readfile/tracking/dynapaint (and a few others), and another bunch of UI messages tweaks/fixes, as well as some BKE_report()<->BKE_reportf()...
2012-10-26 17:32:50 +00:00