Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-01-14use booleans for bmesh api.Campbell Barton
2012-12-12add threshold for bmesh & openmp so its not used with low poly meshes, ↵Campbell Barton
BM_OMP_LIMIT may need tweaking.
2012-12-12use openmp to thread some common bmesh operationsCampbell Barton
- BM_mesh_elem_toolflags_ensure / bmo_flag_layer_alloc / bmo_flag_layer_free / bmo_flag_layer_clear - BM_mesh_select_flush - EDBM_index_arrays_init notes: - mostly use openmp `sections` to split operations on vert/edge/face since this is a fairly minor change. - split tool flag pool in 3, this means we can allocate exact sizes needed and iterate on them in threads without alloc'ing.
2012-12-11own cleanup commit in bmesh branch - removed last letters from ends of some ↵Campbell Barton
comments.
2012-12-08bmesh toolflags would use BLI_MEMPOOL_SYSMALLOC when reducing layers only ↵Campbell Barton
(would use MEM_mallocN in one case but malloc in another). better use blenders MEM_mallocN for both.
2012-12-02Silent some warnings (the one in bmesh_operator.c was even preventing build ↵Bastien Montagne
in -Werror mode).
2012-11-28bmesh operator naming - use clearer names for args eg: (mat -> matrix, ↵Campbell Barton
use_singleedge -> use_single_edge) also remove duplicate docs for operator arg formatting.
2012-11-28improve docstring for BMO_op_vinitf().Campbell Barton
2012-11-27use clearer names for 'single' bmesh operator args & add '%e' to ↵Campbell Barton
BMO_op_vinitf comments.
2012-11-27py/bmesh api - add support for single item buffers (odd feature but used ↵Campbell Barton
quite a bit with bmesh operators). also add utility functions BMO_slot_buffer_from_single(), BMO_slot_buffer_get_single()
2012-11-27fix for asserts added in own recent commit with more strict type-checkingCampbell Barton
- BMO_slot_copy now only copies compatible elements. other minor changes - don't use text.format(...), convention for UI scripts is C style string formatting. - rename bmo_edgenet_prepare --> bmo_edgenet_prepare_exec - float/double warning in bevel.
2012-11-27bmesh/py operator api:Campbell Barton
add type checking for element buffers, there was nothing stopping python from passing any element type into an argument when in some cases only verts/edges/faces were expected. now operator args define which types they support.
2012-11-26py/bmesh api - support for converting from/to BMO_OP_SLOT_MAPPING type.Campbell Barton
2012-11-26use more rigid type checking for bmesh slot subtypes.Campbell Barton
2012-11-26add subtypes to bmesh operators (needed for python api to know how to ↵Campbell Barton
convert return values).
2012-11-22fix own error - remove doubles slot name.Campbell Barton
2012-11-20code cleanup: comment unused members of bmesh operator slots and some osl ↵Campbell Barton
style edits.
2012-11-20bmesh operator api:Campbell Barton
avoid per vert/edge/face string lookups in BMO_slot_map_* functions --- used in array modifier, subdivide, remove doubles and other tools.
2012-11-20bmesh operator api edits, add macros and NULL the buffer if ↵Campbell Barton
BMO_slot_buffer_alloc()'s len is zero.
2012-11-19use input and output slots for bmesh operators, needed for the python api to ↵Campbell Barton
get return values.
2012-11-18bmesh: lazy initialize bmesh tool flag pool, has the advantage that ↵Campbell Barton
modifiers that dont use bmesh operators can skip allocating it.
2012-11-18bmesh: move internal API flags out of BMFlagLayer, into BMHeader which was ↵Campbell Barton
being padded up anyway, added static assert to make sure it stays <=16 bytes.
2012-11-08fix [#33000] bmesh.ops.create_* either crash blender or do nothingCampbell Barton
2012-11-05avoid using BLI_array for remove double helper function - ↵Campbell Barton
bmesh_find_doubles_common(), was growing and array one at a time (with re-allocs), when the size is known.
2012-10-29style cleanup: also quiet harmless compiler warning.Campbell Barton
2012-10-26Big i18n commit: add "reports" from bmesh/readfile/tracking/dynapaint (and a ↵Bastien Montagne
few others), and another bunch of UI messages tweaks/fixes, as well as some BKE_report()<->BKE_reportf()...
2012-09-18code cleanup: typos and set exceptional cases of zero length normals as ↵Campbell Barton
UNLIKELY().
2012-09-08style cleanupCampbell Barton
2012-07-21remove BMO_OP_FLAG_RATIONALIZE_NORMALS option which wasnt used anywhere.Campbell Barton
2012-07-21add option so operators can be called with a flag, currently the only flag ↵Campbell Barton
is to respect hidden geometry. this is useful for bmesh tools that operate in object mode or for modifiers which would previously use hidden faces in some cases.
2012-07-03add bmesh/python operator support for vector and matrix args.Campbell Barton
also rename BMO_OP_SLOT_PNT to BMO_OP_SLOT_PTR (matches RNA and sounds less like 'point')
2012-06-30rename bmesh ops since they are exposed in an api now.Campbell Barton
2012-06-30add support for passing lists of verts/edges/faces to bmesh operatorsCampbell Barton
2012-06-30all bmesh operators can now be accessed from bmesh.ops.* using a generic ↵Campbell Barton
wrapper, argument parsing still needs to have support added for vector, matrix and element types.
2012-06-30code cleanup: rename some members of bmesh operators, 'slots' is a C++ ↵Campbell Barton
keyword which confuses some IDE's. also added missing BMO_op_vinitf args to comments.
2012-06-11Fix incorrectly deleted elements in array modifier caps.Nicholas Bishop
Add check for merging vertices into vertices that are themselves marked for merge, was already done for array eleements but not end caps. Fixes bug [#31695] Array Modifier: End Cap fails if all vertices are merged Also corrected some reversed assert arguments.
2012-05-20code cleanup:Campbell Barton
- style - multi-line ifs move braces onto new lines. - iterators - convert some to macros, other split up and move brace.
2012-05-16Code cleanup: simplify standard GHash creation.Nicholas Bishop
Added four new functions as shortcuts to creating GHashes that use the standard ptr/str/int/pair hash and compare functions. GHash *BLI_ghash_ptr_new(const char *info); GHash *BLI_ghash_str_new(const char *info); GHash *BLI_ghash_int_new(const char *info); GHash *BLI_ghash_pair_new(const char *info); Replaced almost all occurrences of BLI_ghash_new() with one of the above functions.
2012-05-03style cleanup: formatting and some float/double promotionCampbell Barton
2012-04-19remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the ↵Campbell Barton
maceros had unused args in both cases).
2012-04-19code cleanup: first step to replace BM_ITER BM_ITER_INDEX macros.Campbell Barton
2012-04-19style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITERCampbell Barton
2012-04-13bmesh api changes:Campbell Barton
- remove recently added BM_mesh_select_flush_strip(), functions purpose wasn't clear. - add BM_mesh_elem_hflag_disable_test(), BM_mesh_elem_hflag_enable_test() to match existing BM_mesh_elem_hflag_enable/disable_all(), these take a hflag to test before editing each element. This replaces the need for BM_mesh_select_flush_strip().
2012-04-03fix [#30772] No more than two subdivions give correct result when adding an ↵Campbell Barton
icosphere bug was introduced in r45297, which inadvertently broke testing for multiple flags at once. added BM_elem_flag_test_bool() and BMO_elem_flag_test_bool() to get TRUE/FALSE results rather then the flag value.
2012-04-03bmesh iterators were passing the BMesh as data argument to BM_iter_new(), ↵Campbell Barton
harmless but incorrect. replace these cases with iterator macro.
2012-04-03style cleanup: multi-line if's & whitespace.Campbell Barton
2012-04-03stule cleanup: edits for files which were recently cleaned up.Campbell Barton
2012-03-30For BMesh functions that test flags, add enabled/disabled variants.Nicholas Bishop
2012-03-30Add BMO function to append to a buffer slot.Nicholas Bishop
2012-03-30Fix out-of-date slot type sizes.Nicholas Bishop
The BMO_OPSLOT_TYPEINFO array was out of date, the last two entries were off by one. Updated with correct values and added comments to make it easier to match up in future. Also changed the alloc string for mapping slot's ghash to something more descriptive than "bemsh op".